Installation

Add @hankei6km/rehype-image-salt dependency to your project:

npm install @hankei6km/rehype-image-salt
yarn add @hankei6km/rehype-image-salt

nuxt-image

If you want to use nuxt-image, require to install it.

baseURL of Provider is used in rebuilding image.

nuxt.config.js
{
  buildModules: ["@nuxt/image"],
  modules: ["@nuxt/image"],
  image: {
    imgix: {
      baseURL: "https://images.microcms-assets.io/",
    },
  },
}
Edit this page on GitHub Updated at Tue, Dec 21, 2021