Last active
March 27, 2016 08:17
-
-
Save stansidel/9965a22e0d2dab7da539 to your computer and use it in GitHub Desktop.
Parse Server with the ALLOW_CLIENT_CLASS_CREATION setting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var api = new ParseServer({ | |
databaseURI: databaseUri || 'mongodb://localhost:27017/dev', | |
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/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 | |
}, | |
allowClientClassCreation: process.env.CLIENT_CLASS_CREATION || false // <<< This line is added for disabling client class creation | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment