feat: Add Parse Server option verifyServerUrl to disable server URL verification on server launch (#9881)

This commit is contained in:
Antoine Cormouls
2025-10-25 18:01:58 +02:00
committed by GitHub
parent a3ac82fc54
commit b298cccd9f
5 changed files with 30 additions and 8 deletions

View File

@@ -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;