npm install- Configure
.envfile based on.env.example - Run
npm startfor local development ornpm run buildfor the production build of the app
REACT_APP_BASENAME=/app
PUBLIC_URL=/app
| Parameter | Description | Required |
|---|---|---|
| REACT_APP_BASENAME | This is the basename for the React App. It's needed for the Nginx location block | Yes |
| PUBLIC_URL | This is the basename for the React App. It's needed during build time for the static files | Yes |