diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2021-06-30 13:24:28 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2021-06-30 13:24:28 +0300 |
| commit | 752b96afdf2fa285492deaf3a676d2b2c2e47c9f (patch) | |
| tree | 2f871d262bd2ef87d52e30737b5ead2fc2cd738e /backend/config.ts | |
| parent | f021b52028f5965516671b7f53e7e71543a8ae52 (diff) | |
Dockerize
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; |
