Skip to content

Commit 4151cb0

Browse files
authored
fix parse-community#432: cloud path is not working in Windows due absolute paths protocol
1 parent 01e68ef commit 4151cb0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import http from 'http';
1010
export const config = {
1111
databaseURI:
1212
process.env.DATABASE_URI || process.env.MONGODB_URI || 'mongodb://localhost:27017/dev',
13-
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
13+
cloud: function () {
14+
import('./cloud/main.js');
15+
},
1416
appId: process.env.APP_ID || 'myAppId',
1517
masterKey: process.env.MASTER_KEY || '', //Add your master key here. Keep it secret!
1618
serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse', // Don't forget to change to https if needed

0 commit comments

Comments
 (0)