From 5643b16c7e0febe17fe8e34f4869dce462ba7ba5 Mon Sep 17 00:00:00 2001
From: clauspeterhuebner
Date: Wed, 16 Jul 2025 21:48:35 +0200
Subject: [PATCH] shift writeJwtKeyPairInHomeCommunity before invocation of
app.listen
---
backend/src/index.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/index.ts b/backend/src/index.ts
index 6fe51ba39..283554a9d 100644
--- a/backend/src/index.ts
+++ b/backend/src/index.ts
@@ -11,6 +11,7 @@ async function main() {
initLogging()
const { app } = await createServer(getLogger('apollo'))
+ await writeJwtKeyPairInHomeCommunity()
app.listen(CONFIG.PORT, () => {
// biome-ignore lint/suspicious/noConsole: no need for logging the start message
console.log(`Server is running at http://localhost:${CONFIG.PORT}`)
@@ -19,7 +20,6 @@ async function main() {
console.log(`GraphIQL available at http://localhost:${CONFIG.PORT}`)
}
})
- await writeJwtKeyPairInHomeCommunity()
await startValidateCommunities(Number(CONFIG.FEDERATION_VALIDATE_COMMUNITY_TIMER))
}