Next.js SSG Image Optimization at Build Time
Problem I am trying to use image optimization for local files inside the public directory in a SSG Next.js project. There have been quite a few discussions on Github about introducing the possibility to use the next/image for image optimization at build time. However, at this moment, the next/image component does not work with the static site export. See: https://github.com/vercel/next.js/discussions/19065 Solutions Attempts / Ideas From what I could find, there are a few different actions that can be taken: 1. Set the unoptimized flag in the next.config.js file to completely disable image opt
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.