updaded typescript to 7 and fixed few bugs

This commit is contained in:
Altair-sh
2026-09-22 19:31:51 +02:00
parent 9c25922a3b
commit 5da5fd2c7e
15 changed files with 1040 additions and 493 deletions
@@ -4,6 +4,10 @@ import { redirectRequest, respondToOPTIONS } from '@/app/api/proxy/functions'
import { PROXY_PATHS } from '@/app/api/proxy/paths'
import { appConfig } from '@/lib/configLoader'
//TODO: remove this proxy once the backend handles CORS itself. It only exists
// so the browser can make same-origin requests; with CORS on the backend the
// client can call it directly and this extra hop disappears.
// Forwards the incoming request to the save parser backend.
async function redirect(req: NextRequest): Promise<NextResponse> {
return await redirectRequest(