mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user