fix(kb): handle larger files in the kb (#2324)

* fix(kb): handle larger files in the kb

* fixed images on login page
This commit is contained in:
Waleed
2025-12-11 18:22:16 -08:00
committed by GitHub
parent 3bde9e853f
commit 855e2c418c
7 changed files with 19 additions and 10 deletions

View File

@@ -144,7 +144,9 @@ export async function proxy(request: NextRequest) {
if (hasActiveSession) {
return NextResponse.redirect(new URL('/workspace', request.url))
}
return NextResponse.next()
const response = NextResponse.next()
response.headers.set('Content-Security-Policy', generateRuntimeCSP())
return response
}
if (url.pathname.startsWith('/chat/')) {