yarn dev
or
npm run dev
Starts the development server running on http://localhost:3000
yarn dev
or
npm run dev
Starts the development server and makes your application accessible at
localhost:3000
. Changes in the application code will be hot-reloaded.
yarn build && yarn start
or
npm run build && npm run start
dev
- Runsnext
which starts Next.js in development modebuild
- Runsnext
build which builds the application for production usagestart
- Runsnext
start which starts a Next.js production server
yarn build
or
npm run build
Preps your app for deployment (does not run tests). Optimizes and minifies all files, piping them to the src/.next
folder.
yarn test
or
npm run test
Tests your application with the unit tests specified in the **/tests/*.js
files
throughout the application.
yarn test:watch
or
npm run test:watch
Watches changes to your application and re-runs tests whenever a file changes.
yarn lint
or
npm run lint
Lints your JavaScript.
yarn prettier
or
npm run prettier
Lints your JavaScript.
Lints your code and tries to fix any errors it finds.