This is a Next.js project bootstrapped with create-next-app and has been added with Redux Saga
- Copy and paste
next.config.example.js
tonext.config.js
and fillup all the parameters
- First, run the development server.
yarn install
yarn dev
-
Open http://localhost:3000 with your browser to see the result.
-
You can start editing the page by modifying
pages/index.js
. The page auto-updates as you edit the file.
- Build and run on production server.
yarn build && yarn start
- Build and export.
yarn build && yarn export
- create the container for the app
docker build . -t demo-web-server
- run the container and publish.
docker run -p 4001:80 demo-web-server
Note: publish or -p will creates a firewall rule which maps a container port to a port on the Docker host