fix: erlaubte public route fuer debug-env

This commit is contained in:
betalabor.de
2026-04-24 20:30:31 +02:00
parent c6790f38fc
commit f8cce26630

View File

@@ -1,7 +1,7 @@
import { defineMiddleware } from 'astro:middleware'; import { defineMiddleware } from 'astro:middleware';
import { getSessionFromRequest } from './lib/auth'; import { getSessionFromRequest } from './lib/auth';
const EXACT_PUBLIC = ['/', '/verify']; const EXACT_PUBLIC = ['/', '/verify', '/api/debug-env'];
const PREFIX_PUBLIC = ['/cv/', '/api/auth/']; const PREFIX_PUBLIC = ['/cv/', '/api/auth/'];
export const onRequest = defineMiddleware(async (context, next) => { export const onRequest = defineMiddleware(async (context, next) => {