From 1ffb1e2ab3e1d1781d35bb23a3770d5a94937635 Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Thu, 9 Sep 2021 23:43:29 +0200 Subject: [PATCH] fix(frontend): only hardcode env vars for development REACT_APP_VERSION is not used and maintained right now --- frontend/.env | 9 --------- frontend/.env.development | 5 +++++ 2 files changed, 5 insertions(+), 9 deletions(-) create mode 100644 frontend/.env.development diff --git a/frontend/.env b/frontend/.env index c47b5fc10..90c2db115 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1,11 +1,2 @@ -# Access the package.json's version through process.env -REACT_APP_VERSION=$npm_package_version - -# The URL where the server runs -REACT_APP_SERVER_URL="http://localhost:3000" - -# The URL where the Apollo server runs -REACT_APP_GRAPHQL_URL="http://localhost:3000/graphql" - # See this issue https://github.com/facebook/create-react-app/issues/1795#issuecomment-357353472 SKIP_PREFLIGHT_CHECK=true diff --git a/frontend/.env.development b/frontend/.env.development new file mode 100644 index 000000000..7941f8929 --- /dev/null +++ b/frontend/.env.development @@ -0,0 +1,5 @@ +# The URL where the server runs +REACT_APP_SERVER_URL="http://localhost:3000" + +# The URL where the Apollo server runs +REACT_APP_GRAPHQL_URL="http://localhost:3000/graphql" \ No newline at end of file