From 1a17cc83d7ff56542b76b63edb1cfe75825cb7b4 Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Tue, 11 Jan 2022 00:47:58 +0000 Subject: [PATCH] remove PUBLIC_URL from development env --- .env.development | 1 - README.md | 10 ++++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.env.development b/.env.development index af56fe2..4d321d2 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,3 @@ -PUBLIC_URL=http://localhost:3000 API_URL=http://localhost:8080 REACT_APP_WEBSITE_NAME="RetroPilot Connect - Development" diff --git a/README.md b/README.md index eadbcbc..f3c5c8c 100644 --- a/README.md +++ b/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`.