Disable paraglide middleware

This commit is contained in:
Jorge Vargas 2025-06-22 12:28:34 -06:00
parent ae22351367
commit 8ea95487dd

View file

@ -6,8 +6,10 @@ import PAGES from 'utils/pages.json'
import prismaClient from 'utils/prisma-client' import prismaClient from 'utils/prisma-client'
export const onRequest = defineMiddleware(async (context, next) => { export const onRequest = defineMiddleware(async (context, next) => {
const { request } = context
//paraglideMiddleware(request, async ({ locale, request }) => {
const isAuthed = await auth.api.getSession({ const isAuthed = await auth.api.getSession({
headers: context.request.headers headers: request.headers
}) })
if (isAuthed) { if (isAuthed) {
@ -31,5 +33,6 @@ export const onRequest = defineMiddleware(async (context, next) => {
context.locals.pages = [] context.locals.pages = []
} }
return paraglideMiddleware(context.request, () => next()) return next()
//})
}) })