Next.js · Junior · Question 30 of 75
What do the next build and next start commands do?
- ✓Correct answer:
buildcreates the production build,startruns it - 2
buildstarts the dev server, whilestartruns the project's tests - 3They're synonyms:
startis the old name ofbuild
Explanation
next dev is the development server with fast refresh. next build compiles the app, prerenders static routes and prints a report. next start runs the production server on the build output. For a static site there's output: 'export'.