React, Typescript, Next.js (app router + server components)
(also: SCSS, redux-toolkit, next-translate, docker-multi-env)
make
.env.local
file using sample.env.local.sample
npm run dev
Development mode with HMR
Open http://localhost:3000
npm run dev80
Development mode with HMR
Open http://localhost
npm run build
Generating optimized build for production
npm run prod
Start the production
!!!! NOTE !!!!
: don't forget to copy folder.next/static
to.next/standalone/.next
OR
: just use commandnpm run prod:local
OR
: use Docker (commands below)
make build-development
make start-development
make stop-development // to shut down
make build-staging
make start-staging
make stop-staging // to shut down
make build-production
make start-production
make stop-production // to shut down
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.