Build

Yarn build


Step 1:

yarn install

Step 2:

yarn build

Step 3:

yarn start

Yarn Development mode


Step 1:

yarn install

Step 2:

yarn dev

NPM 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 dev

Refer: https://nextjs.org/docs/getting-started


  • Build: Builds the app for production to the .next folder. 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 build first.

  • Dev: Runs the app in the development mode. Open http://localhost:3003 to view it in the browser.

Last updated