-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
9,328 additions
and
6,643 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import dotenv from 'dotenv'; | ||
import { getJwtSecret, getJwtExpirationPeriod } from './getters'; | ||
import dotenv from "dotenv"; | ||
import { getJwtSecret, getJwtExpirationPeriod } from "./getters"; | ||
|
||
dotenv.config(); | ||
|
||
export const JWT_SECRET = getJwtSecret(); | ||
export const PORT = Number(process.env.PORT ?? '3001'); | ||
export const isDevelopment = process.env.NODE_ENV === 'development'; | ||
export const PORT = 3000; | ||
export const isDevelopment = process.env.NODE_ENV === "development"; | ||
export const AUTH_SIGNUP_ENABLED = Boolean(process.env.AUTH_SIGNUP_ENABLED); | ||
export const JWT_EXPIRATION_PERIOD: string = getJwtExpirationPeriod(); | ||
export const API_ORIGIN = process.env.API_ORIGIN || `http://0.0.0.0:${PORT}`; | ||
export const API_GQL_ENDPOINT = process.env.API_GQL_ENDPOINT || `${API_ORIGIN}/graphql`; | ||
export const API_GQL_ENDPOINT = | ||
process.env.API_GQL_ENDPOINT || `${API_ORIGIN}/graphql`; |
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
Oops, something went wrong.