To start app locally:
- Install dependencies (only before app initialization): 'yarn install'
- Type 'yarn next dev'
- App starts on http://localhost:3000/
To deploy app:
- Push changes to master
- Run 'npm run deploy'
- Create in branch gh-pages empty file .nojekyll in _next directory and in root
Next export script does not convert .nojekyll file, so we need to create it manually.
Possible troubles:
- 404 error - probably page is still in deployment, GitHub needs some time :) If waiting about 10 minutes does not help - check if CNAME file is in root directory in gh-pages branch and its content is valid URL.
- No assets - check if empty .nojekyll file exists in _next directory and root directory in gh-pages branch.