forked from parse-community/parse-server-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
18 lines (18 loc) · 760 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { schemaDefinitions } from "./cloud/schema.js";
export const config = {
databaseURI: process.env.DATABASE_URI || process.env.MONGODB_URI || 'mongodb://localhost:27017/dev',
cloud: process.env.CLOUD_CODE_MAIN || './cloud/main.js',
appId: process.env.APP_ID || 'myAppId',
masterKey: process.env.MASTER_KEY || '', //Add your master key here. Keep it secret!
serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse', // Don't forget to change to https if needed
liveQuery: {
classNames: ['Posts', 'Comments'], // List of classes to support for query subscriptions
},
schema: {
definitions: schemaDefinitions,
lockSchemas: true,
strict: true,
recreateModifiedFields: false,
deleteExtraFields: false,
},
};