Next.js Discord

Discord Forum

Image src set

Answered
Japanese Bobtail posted this in #help-forum
Open in Discord
Avatar
Japanese BobtailOP
Hi there. How is it possible to get an image src set? On the official vercel website i found an example https://vercel.com/templates/next.js/isr-blog-nextjs-wordpress but the component doesn't do any magic things: https://github.com/vercel/next.js/blob/canary/examples/cms-wordpress/components/cover-image.tsx

If i use the image component i only get a default image tag without the src set.
Answered by Clown
Ofcourse it doesnt do anything magical


Next/image automatically generates the srcSets
View full answer

3 Replies

Avatar
Japanese BobtailOP
Anyone can help?
Avatar
Ofcourse it doesnt do anything magical


Next/image automatically generates the srcSets
Answer
Avatar
Japanese BobtailOP
Okay thanks