From 4197edd5029d1affec9580c08caa21ca6c17c96e Mon Sep 17 00:00:00 2001 From: ismay Date: Wed, 26 Jun 2019 14:55:12 +0200 Subject: [PATCH] chore: update .env --- .env.development | 2 -- .env.production | 13 ++++++------- .env.test | 2 -- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.env.development b/.env.development index f26fc25b2..5b3df0bd9 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1 @@ -# Default admin/district authorization for development REACT_APP_DHIS2_BASE_URL="http://localhost:8080" -REACT_APP_DHIS2_AUTHORIZATION="Basic YWRtaW46ZGlzdHJpY3Q=" \ No newline at end of file diff --git a/.env.production b/.env.production index f208b3da5..bda6371f3 100644 --- a/.env.production +++ b/.env.production @@ -1,10 +1,9 @@ -# By default CRA expects the app to be hosted at server root -# this ensures that assets are looked up relative to where -# index.html is served from -# See also: https://facebook.github.io/create-react-app/docs/using-the-public-folder -# and: https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables +# Prepended to asset paths in the generated index.html. This allows the app to still work +# when served from a nested path, like on the play server +# https://facebook.github.io/create-react-app/docs/using-the-public-folder +# https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables PUBLIC_URL="." -# Authorization left empty intentionally for production +# The url used for api discovery. Usually concatenated with '/api' to construct the base path for +# api requests like so: `${REACT_APP_DHIS2_BASE_URL}/api/`, REACT_APP_DHIS2_BASE_URL=".." -REACT_APP_DHIS2_AUTHORIZATION= \ No newline at end of file diff --git a/.env.test b/.env.test index 811ebb841..0e0b07dff 100644 --- a/.env.test +++ b/.env.test @@ -1,3 +1 @@ -# Authorization and base url should not be necessary for testing REACT_APP_DHIS2_BASE_URL= -REACT_APP_DHIS2_AUTHORIZATION= \ No newline at end of file