Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Commit

Permalink
fix(frontend): only hardcode env vars for development
Browse files Browse the repository at this point in the history
REACT_APP_VERSION is not used and maintained right now
  • Loading branch information
coderbyheart committed Sep 9, 2021
1 parent c322294 commit 1ffb1e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 0 additions & 9 deletions frontend/.env
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions frontend/.env.development
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 1ffb1e2

Please sign in to comment.