July 2018
Intermediate to advanced
164 pages
3h 15m
English
Next.js supports two kinds of production usage, static and dynamic, the main difference being that a static build can be served by any static HTTP server as a static website, whereas dynamic usage means that there will be a Next.js server that executes the production build:
{ "scripts": { "build": "next build", "static": "next export" } }
// next.config.js module.exports = { exportPathMap: () => ({ '/': {page: '/'} }) };
Read now
Unlock full access