We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71b1121 commit 3114f5cCopy full SHA for 3114f5c
packages/nextjs/src/config/manifest/buildManifest.ts
@@ -38,10 +38,9 @@ function getDynamicRouteSegment(name: string): string {
38
// Required catchall: [...param]
39
const paramName = name.slice(4, -1); // Remove [... and ]
40
return `:${paramName}*`;
41
- } else {
42
- // Regular dynamic: [param]
43
- return `:${name.slice(1, -1)}`;
44
- }
+ }
+ // Regular dynamic: [param]
+ return `:${name.slice(1, -1)}`;
45
}
46
47
function buildRegexForDynamicRoute(routePath: string): { pattern: string; paramNames: string[] } {
0 commit comments