fix: portainer env overrides for smtp

This commit is contained in:
betalabor.de
2026-04-24 20:23:03 +02:00
parent cd2172a0d3
commit c6790f38fc

View File

@@ -0,0 +1,14 @@
import type { APIRoute } from 'astro';
export const GET: APIRoute = () => {
return new Response(JSON.stringify({
message: 'Debug der Docker Environment Variablen',
SMTP_HOST_RAW: process.env.SMTP_HOST || 'nicht vorhanden',
SMTP_HOST_LENGTH: process.env.SMTP_HOST ? process.env.SMTP_HOST.length : 0,
SMTP_HOST_IS_EXACT_LOCALHOST: process.env.SMTP_HOST === 'localhost',
HAS_SESSION_SECRET: !!process.env.SESSION_SECRET,
}, null, 2), {
status: 200,
headers: { 'Content-Type': 'application/json' }
});
};