summaryrefslogtreecommitdiff
path: root/api/_postgres.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/_postgres.ts')
-rw-r--r--api/_postgres.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/_postgres.ts b/api/_postgres.ts
new file mode 100644
index 0000000..70b25c8
--- /dev/null
+++ b/api/_postgres.ts
@@ -0,0 +1,4 @@
+import env from './_env';
+
+export const tablePrefix = env.ENVIRONMENT === 'prod' ? '' : 'dev_';
+export const tableSubscriptions = `${tablePrefix}subscriptions`;