diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2021-06-30 11:33:40 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2021-06-30 11:33:40 +0300 |
| commit | f021b52028f5965516671b7f53e7e71543a8ae52 (patch) | |
| tree | 62a0f9499bd75c1bc46de09fda3a0e0ce092d70d /backend/config.ts | |
| parent | ac31a7d9d43d3dcaa37906569dcb8eaf8429b3bf (diff) | |
Do things
Diffstat (limited to 'backend/config.ts')
| -rw-r--r-- | backend/config.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/config.ts b/backend/config.ts new file mode 100644 index 0000000..2585736 --- /dev/null +++ b/backend/config.ts @@ -0,0 +1,6 @@ +if (!process.env.POSTGRES_CONNECTION_STRING) { + throw new Error("POSTGRES_CONNECTION_STRING env var not defined!"); +} + +export const postgresConnectionString = process.env.POSTGRES_CONNECTION_STRING; +export const port = process.env.PORT || 4000; |
