remove PUBLIC_URL from development env

main
Cameron Clough 2022-01-11 00:47:58 +00:00
parent 1daf4c2321
commit 1a17cc83d7
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,3 @@
PUBLIC_URL=http://localhost:3000
API_URL=http://localhost:8080
REACT_APP_WEBSITE_NAME="RetroPilot Connect - Development"

View File

@ -4,6 +4,12 @@ React client for Retropilot
Ties into https://github.com/retropilot/retropilot-server/ to provide a react frontend
## Environment Variables
The app configuration (see `src/config.js`) is loaded from environment variables. A different
different environment can be configured for development (`npm run start`), testing (`npm test`) and
production (`npm run build`).
To override the environment variables, create a `.env.local` file. You can also override the
variables for development, testing and production independently (`.env.development`,
`.env.test.local` and `.env.production.local` files).
variables for development, testing and production independently (`.env.development`, `.env.test.local` and `.env.production.local`
files). Set the `API_URL` to the address of the RetroPilot server, such as `http://localhost:8080` or `https://api.retropilot.local`.