Skip to content

Commit c624ad3

Browse files
committed
add default uri to avoid crash
1 parent 50f8ca7 commit c624ad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const http = require('http');
88

99
const config = {
1010
databaseURI:
11-
process.env.DATABASE_URI || process.env.MONGODB_URI || '',
11+
process.env.DATABASE_URI || process.env.MONGODB_URI || 'mongodb://localhost:27017/dev',
1212
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
1313
appId: process.env.APP_ID || 'appId',
1414
masterKey: process.env.MASTER_KEY || 'masterKey', //Add your master key here. Keep it secret!

0 commit comments

Comments
 (0)