SSG exports
While in the boilerplate we try to use ISR and other features that are not supported by pure next export, we can still use it.
The official documentation for next export is here (opens in a new tab).
Be aware that we lose these features when using next export:
- Internationalized Routing
- API Routes
- Rewrites
- Redirects
- Headers
- Middleware
- Incremental Static Regeneration
- getStaticPaths with fallback: true
- getStaticPaths with fallback: 'blocking'
- getServerSideProps
We use a custom Image loader, so it shouldn't affect Image optimization.