NextJS Tips Series: Static HTML export

Said BADAOUI
Jan 11, 2021

--

nextjs tips series — static HTML export

next exportexports 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.

--

--

Said BADAOUI

Full-stack developer & passionate blogger, using technology to bring ideas to life and sharing knowledge through writing. Constantly learning & improving skills