Answers for "getting-host-is-not-configured-error-when-using-next-image"

0

getting-host-is-not-configured-error-when-using-next-image

From Next.js 12, you can now keep using ES modules by renaming the config file 
to next.config.mjs. While this isn't exactly the same as using TypeScript, 
at least you can keep the syntax consistent.

// next.config.mjs
export default {
    images: {
        domains: ['images.unsplash.com']
    }
}
Posted by: Guest on April-29-2022

Code answers related to "getting-host-is-not-configured-error-when-using-next-image"

Code answers related to "Javascript"

Browse Popular Code Answers by Language