Revert "[next] add .action handling for dynamic routes" (#11470)

Reverts vercel/vercel#11461 and #11454  while we revisit the approach to produce fewer rewrites.
This commit is contained in:
Zack Tanner
2024-04-19 12:26:01 -06:00
committed by GitHub
parent 02454d4c02
commit 64bd6dd057
14 changed files with 7 additions and 291 deletions

View File

@@ -432,15 +432,6 @@ export async function getDynamicRoutes({
dest: route.dest?.replace(/($|\?)/, '.rsc$1'),
});
routes.push({
...route,
src: route.src.replace(
new RegExp(escapeStringRegexp('(?:/)?$')),
'(?:\\.action)(?:/)?$'
),
dest: route.dest?.replace(/($|\?)/, '.action$1'),
});
routes.push(route);
}
@@ -1496,7 +1487,6 @@ export type LambdaGroup = {
isStreaming?: boolean;
isPrerenders?: boolean;
isExperimentalPPR?: boolean;
isActionPrerender?: boolean;
isPages?: boolean;
isApiLambda: boolean;
pseudoLayer: PseudoLayer;