-
Get Yarn.
npm i -g yarn@latest
Why Yarn? We use selective resolution overrides to work around React version discrepancies in several of our dependencies.
-
Install dependencies:
yarn
-
Run the development server:
yarn start # npm works, too! npm start
When adding redirects to the redirects.json
file, it's important to follow the correct schema format to ensure that the redirects (and rewrites) work as intended.
Each redirect should be added as an object with three required properties: name
, match
, and destination
.
- The
name
property should be a descriptive name for the redirect - The
match
property should be a regular expression that matches the URL pattern to be redirected. - The
destination
property should be the URL to which the matched pattern should be redirected.
It's important to test the redirects in our staging
environment prior to a production deployment to ensure that they work correctly and do not cause any unintended downtime.
Please refer to the following diagram for more details around deployment: