-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changing README and removing some hosting information
- Loading branch information
1 parent
e6966a7
commit a81b4d6
Showing
12 changed files
with
102 additions
and
69 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
export type Environment = { | ||
googleClientId: string; | ||
isDevEnv: boolean; | ||
oAuthCallbackUrls: string[]; | ||
}; | ||
|
||
export function getFromEnvironment(): Environment { | ||
const googleClientId = process.env['GOOGLE_CLIENT_ID']; | ||
const isDevEnv = !!process.env.IS_DEV_ENV; | ||
const oAuthCallbackUrls = process.env.OAUTH_CALLBACK_URLS?.split(','); | ||
if (googleClientId == null) { | ||
throw new Error('Please set GOOGLE_CLIENT_ID. More details in README.md'); | ||
} | ||
if (oAuthCallbackUrls == null) { | ||
throw new Error('Please set OAUTH_CALLBACK_URL. More details in README.md'); | ||
} | ||
return { googleClientId, isDevEnv, oAuthCallbackUrls }; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Binary file not shown.
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