Member-only story
NextJS Tips Series: Static HTML export
Jan 11, 2021
next export
exports your app to static HTML, which can be run standalone without the need of a Node.js server (for those who want to buy a template on HTML format on any marketplace like Envato ThemeForest, etc..).
The exported app supports almost every feature of Next.js, incl. dynamic routes, prefetching, preloading and dynamic imports.
// Package.json
"scripts": {
"build": "next build && next export"
}
Thank you :)
You can get full access to every story on Medium for just $5/month by signing up through this link.