File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ export async function proxy(request: NextRequest) {
1212 pathname . startsWith ( "/_next" ) ||
1313 // pathname.startsWith("/api") ||
1414 pathname === "/favicon.ico" ||
15- / \. ( c s s | j s | t s | t s x | j s x | w o f f 2 ? | t t f | p n g | j p g | j p e g | g i f | s v g | w e b m a n i f e s t ) $ / . test ( pathname ) ||
15+ // AI CODE START
16+ / \. ( c s s | j s | t s | t s x | j s x | w o f f 2 ? | t t f | p n g | j p g | j p e g | g i f | s v g | w e b m a n i f e s t | j s o n ) $ / . test ( pathname ) ||
17+ // AI CODE END
1618 request . headers . get ( "purpose" ) === "prefetch" ||
1719 request . headers . get ( "Next-Router-Prefetch" ) === "1" ||
1820 request . headers . get ( "RSC" ) === "1" ||
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ export function getValidRedirectPath(path: string | null | undefined): string {
2727 }
2828
2929 // Blacklist certain paths for security
30- const blockedPaths = [ '/api/' , '/auth/sign-out' ] ;
30+ // AI CODE START
31+ const blockedPaths = [ '/api/' , '/auth/sign-out' , '/manifest.json' ] ;
32+ // AI CODE END
3133 if ( blockedPaths . some ( blocked => path . startsWith ( blocked ) ) ) {
3234 return defaultPath ;
3335 }
You can’t perform that action at this time.
0 commit comments