DEV Community

loading...

Discussion on: Creating a Jamstack blog [Part 1]

Collapse
sgolovine profile image
Sunny Golovine

Not quite. If you look at the bottom of the loader section on this page. nextjs.org/docs/basic-features/ima..., 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:
github.com/vercel/next.js/discussi...

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