Skip to content

Commit 178bd5c

Browse files
authored
fix: Server URL verification before server is ready (#9882)
1 parent 115e76e commit 178bd5c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ lib/
6161

6262
# Redis Dump
6363
dump.rdb
64+
65+
# AI agents
66+
.claude

src/ParseServer.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,6 @@ class ParseServer {
365365
process.exit(1);
366366
}
367367
});
368-
// verify the server url after a 'mount' event is received
369-
/* istanbul ignore next */
370-
api.on('mount', async function () {
371-
await new Promise(resolve => setTimeout(resolve, 1000));
372-
ParseServer.verifyServerUrl();
373-
});
374368
}
375369
if (process.env.PARSE_SERVER_ENABLE_EXPERIMENTAL_DIRECT_ACCESS === '1' || directAccess) {
376370
Parse.CoreManager.setRESTController(ParseServerRESTController(appId, appRouter));
@@ -487,6 +481,7 @@ class ParseServer {
487481
/* istanbul ignore next */
488482
if (!process.env.TESTING) {
489483
configureListeners(this);
484+
await ParseServer.verifyServerUrl();
490485
}
491486
this.expressApp = app;
492487
return this;

0 commit comments

Comments
 (0)