updaded typescript to 7 and fixed few bugs
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user