From 1ef7f9f822f7d3b4866def8f12a93867e4be500c Mon Sep 17 00:00:00 2001 From: theoleuthardt Date: Fri, 28 Feb 2025 11:37:15 +0100 Subject: [PATCH] feat: debug prints at runtime in docker --- backend/server.ts | 1 + frontend/next.config.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/backend/server.ts b/backend/server.ts index d21e70e..1b7bd3e 100644 --- a/backend/server.ts +++ b/backend/server.ts @@ -34,4 +34,5 @@ console.log("Starting Fastify server..."); const PORT = process.env.BACKEND_PORT; app.listen({ port: Number(PORT), host: "0.0.0.0" }, () => { console.log(`🚀Fastify is live on http://localhost:${PORT}`); + console.log(`Allowed origin: ${process.env.CORS_ALLOWED_ORIGIN}`); }); diff --git a/frontend/next.config.ts b/frontend/next.config.ts index 61ab14e..2885d37 100644 --- a/frontend/next.config.ts +++ b/frontend/next.config.ts @@ -1,5 +1,7 @@ import type { NextConfig } from "next"; +console.log("NEXT_PUBLIC_BACKEND_URL", process.env.NEXT_PUBLIC_BACKEND_URL); + const nextConfig: NextConfig = { output: "standalone", env: {