インストール
プロジェクトに @hankei6km/rehype-image-salt
の依存関係を追加します。
npm install @hankei6km/rehype-image-salt
yarn add @hankei6km/rehype-image-salt
nuxt-image
nuxt-image を利用する場合は、別途インストールする必要があります。
Provider のbaseURL
の値は画像の再構築時にも利用します。
nuxt.config.js
{
buildModules: ["@nuxt/image"],
modules: ["@nuxt/image"],
image: {
imgix: {
baseURL: "https://images.microcms-assets.io/",
},
},
}