fix: Server URL verification before server is ready (#9882)

This commit is contained in:
Manuel
2025-10-19 21:25:46 +02:00
committed by GitHub
parent 115e76e8ad
commit 178bd5c5e2
2 changed files with 4 additions and 6 deletions

3
.gitignore vendored
View File

@@ -61,3 +61,6 @@ lib/
# Redis Dump
dump.rdb
# AI agents
.claude

View File

@@ -365,12 +365,6 @@ class ParseServer {
process.exit(1);
}
});
// verify the server url after a 'mount' event is received
/* istanbul ignore next */
api.on('mount', async function () {
await new Promise(resolve => setTimeout(resolve, 1000));
ParseServer.verifyServerUrl();
});
}
if (process.env.PARSE_SERVER_ENABLE_EXPERIMENTAL_DIRECT_ACCESS === '1' || directAccess) {
Parse.CoreManager.setRESTController(ParseServerRESTController(appId, appRouter));
@@ -487,6 +481,7 @@ class ParseServer {
/* istanbul ignore next */
if (!process.env.TESTING) {
configureListeners(this);
await ParseServer.verifyServerUrl();
}
this.expressApp = app;
return this;