feat: debug prints at runtime in docker

This commit is contained in:
theoleuthardt 2025-02-28 11:37:15 +01:00
parent 776ed29bca
commit 1ef7f9f822
2 changed files with 3 additions and 0 deletions

View file

@ -34,4 +34,5 @@ console.log("Starting Fastify server...");
const PORT = process.env.BACKEND_PORT; const PORT = process.env.BACKEND_PORT;
app.listen({ port: Number(PORT), host: "0.0.0.0" }, () => { app.listen({ port: Number(PORT), host: "0.0.0.0" }, () => {
console.log(`🚀Fastify is live on http://localhost:${PORT}`); console.log(`🚀Fastify is live on http://localhost:${PORT}`);
console.log(`Allowed origin: ${process.env.CORS_ALLOWED_ORIGIN}`);
}); });

View file

@ -1,5 +1,7 @@
import type { NextConfig } from "next"; import type { NextConfig } from "next";
console.log("NEXT_PUBLIC_BACKEND_URL", process.env.NEXT_PUBLIC_BACKEND_URL);
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
output: "standalone", output: "standalone",
env: { env: {