diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-19 21:29:12 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-19 21:29:12 +0200 |
commit | a47de8585c9e4394f078a51fd4fd194694af53d8 (patch) | |
tree | 740a83baeba926180bc5bc4d6059affef676bc87 /bundle/src/Database.ts | |
parent | :bug: fix vanity url (diff) | |
download | server-a47de8585c9e4394f078a51fd4fd194694af53d8.tar.xz |
:art: update bundle build
Diffstat (limited to 'bundle/src/Database.ts')
-rw-r--r-- | bundle/src/Database.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bundle/src/Database.ts b/bundle/src/Database.ts index 7351290a..12febc1c 100644 --- a/bundle/src/Database.ts +++ b/bundle/src/Database.ts @@ -10,6 +10,7 @@ if (process.arch == "ia32") { } export async function setupDatabase() { + if (process.env.MONGO_URL) return; // exit because the user provides his own mongodb const dbPath = path.join(__dirname, "..", "..", "db"); const dbName = "fosscord"; const storageEngine = "wiredTiger"; |