clean routes

This commit is contained in:
2026-01-03 02:42:47 +01:00
parent 07985fb8f1
commit 2f21dc4595
107 changed files with 7596 additions and 3401 deletions

View File

@@ -136,6 +136,17 @@ async function runWebsiteSmokeScenario(args: {
if (resourceType === 'fetch' && url.includes('_rsc=')) {
return;
}
// Ignore fetch requests to the expected redirect target during page redirects
// This handles cases like /sponsor -> /sponsor/dashboard where the redirect
// causes an aborted fetch request to the target URL
if (resourceType === 'fetch' && route.expectedPathTemplate) {
const expectedPath = resolvePathTemplate(route.expectedPathTemplate, route.params);
const urlObj = new URL(url);
if (urlObj.pathname === expectedPath) {
return;
}
}
}
requestFailures.push({