1
0
Fork 0

fix(shared): Added missing host config for Next image component

This commit is contained in:
joostdecock 2023-06-26 17:54:07 +02:00
parent 0af8fc0f1b
commit ed0cf1cd33

View file

@ -120,6 +120,16 @@ const config = ({ site, jargon = {} }) => {
externalDir: true,
},
pageExtensions: ['mjs'],
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'cdn.sanity.io',
pathname: '/images/**',
port: '',
},
],
},
webpack: (config, options) => {
// Fixes npm packages that depend on node modules
if (!options.isServer) {