fix: enable logging for proxy requests and update route matcher for consistency
This commit is contained in:
parent
6399bda689
commit
67036bed5a
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ import { pswChangeProxy } from "./proxies/psw_change";
|
|||
import { TestRedirectProxy } from "./proxies/test_redirect";
|
||||
|
||||
export async function proxy(request: NextRequest) {
|
||||
//console.log("Proxy triggered for:", request.nextUrl.pathname);
|
||||
console.log("Proxy triggered for:", request.nextUrl.pathname);
|
||||
|
||||
return await chainProxies(request, [
|
||||
TestRedirectProxy,
|
||||
|
|
@ -28,7 +28,7 @@ export const config = {
|
|||
{ key: "purpose", type: "header", value: "prefetch" },
|
||||
],
|
||||
source:
|
||||
"/((?!api/trpc|storage-api|api/tiles|api/auth|_next/static|_next/image|screenshots|site.webmanifest|favicon.ico|favicon|sitemap.xml|robots.txt).*)",
|
||||
"/((?!api/trpc|api/tiles|api/auth|_next/static|_next/image|screenshots|site.webmanifest|favicon.ico|favicon|sitemap.xml|robots.txt|login).*)",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue