feat: Add Parse Server option verifyServerUrl to disable server URL verification on server launch (#9881)
This commit is contained in:
@@ -296,7 +296,13 @@ class ParseServer {
|
||||
* Create an express app for the parse server
|
||||
* @param {Object} options let you specify the maxUploadSize when creating the express app */
|
||||
static app(options) {
|
||||
const { maxUploadSize = '20mb', appId, directAccess, pages, rateLimit = [] } = options;
|
||||
const {
|
||||
maxUploadSize = '20mb',
|
||||
appId,
|
||||
directAccess,
|
||||
pages,
|
||||
rateLimit = [],
|
||||
} = options;
|
||||
// This app serves the Parse API directly.
|
||||
// It's the equivalent of https://api.parse.com/1 in the hosted Parse API.
|
||||
var api = express();
|
||||
@@ -481,7 +487,9 @@ class ParseServer {
|
||||
/* istanbul ignore next */
|
||||
if (!process.env.TESTING) {
|
||||
configureListeners(this);
|
||||
await ParseServer.verifyServerUrl();
|
||||
if (options.verifyServerUrl !== false) {
|
||||
await ParseServer.verifyServerUrl();
|
||||
}
|
||||
}
|
||||
this.expressApp = app;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user