Skip to main content
PProfileMatch
← Path

Next.js · Next.js Static Export, Deployment and Production Mistakes

0 XP
  1. 1 current stop: learning
  2. 2 upcoming
  3. 3 upcoming
  4. 4 upcoming
  5. 5 upcoming

Finish after stop 5

Stop 1 of 5 · Loading dock: boxing up the site

Trick to keep in mind+3 XP

Export means a folder of files: upload out/ and there is no server to run.

Setting output: "export" makes the build write plain HTML, JavaScript, CSS and assets into a folder named out, which any static host can serve. No Node process is involved afterwards, so next start is not used. A different setting, standalone, exists for people who want a server or a Docker image.

Read it once, then a question tests whether the trick stuck.