diff options
Diffstat (limited to 'backend/config.ts')
| -rw-r--r-- | backend/config.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/config.ts b/backend/config.ts index 2585736..ae2462e 100644 --- a/backend/config.ts +++ b/backend/config.ts @@ -3,4 +3,11 @@ if (!process.env.POSTGRES_CONNECTION_STRING) { } export const postgresConnectionString = process.env.POSTGRES_CONNECTION_STRING; + +if (!process.env.FRONTEND_URL) { + throw new Error("FRONTEND_URL env var is not defined!"); +} + +export const frontendUrl = process.env.FRONTEND_URL; + export const port = process.env.PORT || 4000; |
