Boilerplate for React, Static and Server Side Rendered projects with NextJS
Icon made by Pixel perfect from www.flaticon.com
Clone the GitHub repository or Fork it, and start working righ away with it.
git clone https://github.com/Jam3/nyg-nextjs.git
Deploying a static site is fairly simple, we are going to the set up for Codeship.
Create three environment variables based on .env.codeship.[env].local.example
Files:
- .env.codeship.dev.local
- .env.codeship.stage.local
- .env.codeship.prod.local
Note: The environment variable files can't be commited. Based on the name convention they are ignored by GIT.
Run $ ./encrypt-env.sh
Update S3_ORIGIN_BUCKET
and DISTRIBUTION_ID
with your AWS information.
TBD: List commands in package.json
To releasing new versions we are using standard-version.
Steps:
- When PRs/commits land to your master branch, select the Squash and Merge option.
- Add a title and body that follows the Conventional Commits Specification.
- Run
$ git checkout master; git pull origin master
- Run
$ npm run release
- Run
$ git push --follow-tags origin master
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.