A project boilerplate for applications that require React, Redux, Redux-Saga and want to support server rendering as well.
See Next.js documentation for environment config etc.
Using next-routes, you can define custom routes inside
/next.routes.js to handle more advanced routing to support routes with IDs, slugs etc.
The base global page template can be changed in /pages/_document.js
if you require CDN-loaded third party scripts or CSS, or just wish to change the way the page chrome
is rendered across all pages.
The following scripts can be used:
dev: Runs dev environment with hot module reloadingbuild: Builds prod bundle ready for deploymentbuild:export: Builds and exports static HTML prod bundle ready for deploymentstart: Start prod environment (requiresbuildscript to have been run first)format: Runprettiercode formattinglint:ts: Run TS linter, rules defined in/.eslintrclint:scss: Run SCSS linter, rules defined in/.stylelintrclint: Run all lintingtest: Run unit tests for project (using Jest)