fix: erlaubte public route fuer debug-env
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user