Next.js Discord

Discord Forum

Invalid src prop?

Answered
Golden paper wasp posted this in #help-forum
Open in Discord
Golden paper waspOP
How to fix this?
Answered by riský
What about plus.unsplash.com (as that is what you used from whatI see)
View full answer

15 Replies

Golden paper waspOP
remove www. IG
Golden paper waspOP
still doesnt work
Asiatic Lion
/** @type {import('next').NextConfig} */
const nextConfig = {
    images: {
        formats: ['image/webp'], // remove this later, possible security issue
        dangerouslyAllowSVG: true, // remove this later, possible security issue
        domains: [
            'unsplash.com',
            'plus.unsplash.com'
        ]
    }
}

module.exports = nextConfig
What about plus.unsplash.com (as that is what you used from whatI see)
Answer
Asiatic Lion
oh yeah your right, thats the problem
So did it fix?
Asiatic Lion
Idk, @Golden paper wasp fixed?
Ohhh your not op
Golden paper waspOP
no
still not fixed
im trying things out sorry
xD
Also seems a little weird only allowing webp
Golden paper waspOP
uhh it works now but it covered my background completely rofl