Configuration for React + NextJs SSR with Express, i18n, Jest, SASS and Robots.txt + Sitemap.xml
config set by Ivan Ruiz.
To install dependencies run the following command:
Yarn:
yarn install
npm:
npm i // npm install
To start the production server:
Yarn:
yarn next:build
yarn start
npm run next:build
npm start
There’s a bug with nodemon + next, so we cant watch filest at “pages” directory, but its still better then nothing:
Yarn:
yarn dev
npm:
npm run dev
To start testing with Jest:
Yarn:
yarn test
npm:
npm run test