aboutsummaryrefslogtreecommitdiffstats
path: root/backend/config.ts
blob: ae2462e36604bf23a1357b445cce00fb79fba4e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if (!process.env.POSTGRES_CONNECTION_STRING) {
    throw new Error("POSTGRES_CONNECTION_STRING env var not defined!");
}

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;