DEV Community


Discussion on: Creating a Jamstack blog [Part 1]

sgolovine profile image
Sunny Golovine

Not quite. If you look at the bottom of the loader section on this page., you will see:

The next/image component's default loader is not supported when using next export. However, other loader options will work.

Enter fullscreen mode Exit fullscreen mode
Thread Thread
nownano profile image
Ren Author

You're correct, when it comes to SSG outside of Vercel, a custom loader or additional plugin is needed.

Lee Robinson goes into more detail here:

He provides two alternative solutions for SSG image optimization.
Implementing a custom loader (I also recommend Cloudinary).
Or implementing "next-optimized-images", which would be no different than Gatsby's implementation of three plugins to achieve the same goal.

Forem Open with the Forem app