-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebaseConfig.ts
More file actions
19 lines (17 loc) · 871 Bytes
/
firebaseConfig.ts
File metadata and controls
19 lines (17 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import invariant from 'invariant'
// DW devz environment sets DATABASE_URL to the devz database. Do a quick sanity check for that.
// Invariant: DATABASE_URL does not include "postgres" in the URL.
invariant(
!(process.env.DATABASE_URL ?? '').includes('postgres'),
'DATABASE_URL should not include "postgres" in the URL. This probably means your DancingWind is messing it up. Check your shell profile and comment out DATABASE_URL, or override like `DATABASE_URL="https://discord-watch-default-rtdb.firebaseio.com" yarn dev`'
)
export const config = {
apiKey: process.env.apiKey,
authDomain: process.env.authDomain,
databaseURL: process.env.databaseURL,
projectId: process.env.projectId,
storageBucket: process.env.storageBucket,
messagingSenderId: process.env.messagingSenderId,
appId: process.env.appId,
measurementId: process.env.measurementId,
}