We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c22d0 commit 1fb2a57Copy full SHA for 1fb2a57
src/init.js
@@ -87,7 +87,7 @@ AV.init = function init(options, ...params) {
87
AV._config.masterKey = masterKey;
88
if (!process.env.CLIENT_PLATFORM)
89
AV._config.hookKey = hookKey || process.env.LEANCLOUD_APP_HOOK_KEY;
90
- if (typeof production !== 'undefined') AV._config.production = production;
+ AV.setProduction(production);
91
if (typeof disableCurrentUser !== 'undefined')
92
AV._config.disableCurrentUser = disableCurrentUser;
93
AV._appRouter = new AppRouter(AV);
0 commit comments