remove PUBLIC_URL from development env
parent
1daf4c2321
commit
1a17cc83d7
|
@ -1,4 +1,3 @@
|
|||
PUBLIC_URL=http://localhost:3000
|
||||
API_URL=http://localhost:8080
|
||||
|
||||
REACT_APP_WEBSITE_NAME="RetroPilot Connect - Development"
|
||||
|
|
10
README.md
10
README.md
|
@ -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`.
|
||||
|
|
Loading…
Reference in New Issue