- node must be installed
- install packages - run command
yarn install
ornpm install
- start application - run command
yarn dev
ornpm run dev
- then visit http://localhost:3000, app should be working, auto-reload too
- install packages - run command
yarn install
ornpm install
- build application - run command
yarn build
ornpm run build
- start application - run command
yarn start
ornpm start
next build && next export && touch out/.nojekyll && git add out/ && git commit -m "Deploy Next.js to gh-pages" && git subtree push --prefix out origin gh-pages"