Build
Yarn build
Step 1:
yarn installStep 2:
yarn buildStep 3:
yarn startYarn Development mode
Step 1:
yarn installStep 2:
yarn devNPM build
Step 1:
npm install Step 2:
npm run build Step 3:
npm run start NPM Development mode
Step 1:
npm install Step 2:
npm run devRefer: https://nextjs.org/docs/getting-started
Build: Builds the app for production to the
.nextfolder. It correctly bundles React in production mode and optimizes the build for the best performance.Start: Starts the application in production mode. The application should be compiled with
next buildfirst.Dev: Runs the app in the development mode. Open http://localhost:3003 to view it in the browser.
Last updated