-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from Digital-Engineering/development
fixed unix time
- Loading branch information
Showing
3 changed files
with
24 additions
and
6 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 |
---|---|---|
|
@@ -116,12 +116,14 @@ export class Config { | |
private readonly _cache_graphql: boolean; | ||
|
||
private readonly _cors_origins: string[] | string; | ||
private readonly _tz: string; | ||
|
||
private constructor() { | ||
// Either assign a sane default of the env var is missing, or create your | ||
// own checks on process.env. There is most likely a more elegant way but | ||
// I like including sane defaults in the app itself vs. an env-sample file | ||
|
||
this._tz = process.env.TZ || 'GMT'; | ||
this._project_dir = process.env.PROJECT_DIR || './dist'; | ||
this._root_address = process.env.ROOT_ADDRESS || 'http://localhost:8090'; | ||
this._email_address = process.env.EMAIL_ADDRESS || '[email protected]'; | ||
|