aboutsummaryrefslogtreecommitdiffstats
path: root/backend/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'backend/config.ts')
-rw-r--r--backend/config.ts6
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;