static html export

static html export

`next export` exports your app to static HTML, which can be run standalone without the need of a Node.js server. The exported app supports almost every feature of Next.js, incl. dynamic routes, prefetching, preloading and dynamic imports. #javascript

Copy Snippet
// Package.json
"scripts": {
  "build": "next build && next export"
}

/*
Afterwards from your commandline 
npm run build 

or use
next build && next export
directly from your commandline
*/