-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Took out most usages of process.env and replaced with config file. (#161
) * Took out most usages of process.env and replaced with config file. Except for src/ServiceWorker.js and ./cypress/plugins because I don't think it's a super good idea to change anything in those. * Made changes based on review+discussions from PR #161.
- Loading branch information
1 parent
954fb42
commit abf2501
Showing
8 changed files
with
46 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
type Config = { | ||
apiKey?: string; | ||
authDomain?: string; | ||
databaseURL?: string; | ||
projectID?: string; | ||
storageBucket?: string; | ||
messagingSenderID?: string; | ||
appID?: string; | ||
apiURL?: string; | ||
nodeEnv?: string; | ||
}; | ||
|
||
export const config: Config = { | ||
apiKey: process.env.REACT_APP_API_KEY, | ||
authDomain: process.env.REACT_APP_AUTH_DOMAIN, | ||
databaseURL: process.env.REACT_APP_DATABASE_URL, | ||
projectID: process.env.REACT_APP_PROJECT_ID, | ||
storageBucket: process.env.REACT_APP_STORAGE_BUCKET, | ||
messagingSenderID: process.env.REACT_APP_MESSAGING_SENDER_ID, | ||
appID: process.env.REACT_APP_APP_ID, | ||
apiURL: process.env.REACT_APP_API_URL, | ||
nodeEnv: process.env.NODE_ENV, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters