diff --git a/src/proxy.ts b/src/proxy.ts index 493dac6..6ab7a65 100644 --- a/src/proxy.ts +++ b/src/proxy.ts @@ -12,7 +12,9 @@ export async function proxy(request: NextRequest) { pathname.startsWith("/_next") || // pathname.startsWith("/api") || pathname === "/favicon.ico" || - /\.(css|js|ts|tsx|jsx|woff2?|ttf|png|jpg|jpeg|gif|svg|webmanifest)$/.test(pathname) || + // AI CODE START + /\.(css|js|ts|tsx|jsx|woff2?|ttf|png|jpg|jpeg|gif|svg|webmanifest|json)$/.test(pathname) || + // AI CODE END request.headers.get("purpose") === "prefetch" || request.headers.get("Next-Router-Prefetch") === "1" || request.headers.get("RSC") === "1" || diff --git a/src/utils/auth/redirect.ts b/src/utils/auth/redirect.ts index 5f64dca..7e039c7 100644 --- a/src/utils/auth/redirect.ts +++ b/src/utils/auth/redirect.ts @@ -27,7 +27,9 @@ export function getValidRedirectPath(path: string | null | undefined): string { } // Blacklist certain paths for security - const blockedPaths = ['/api/', '/auth/sign-out']; + // AI CODE START + const blockedPaths = ['/api/', '/auth/sign-out', '/manifest.json']; + // AI CODE END if (blockedPaths.some(blocked => path.startsWith(blocked))) { return defaultPath; }