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 04f3164 commit 92dcf3aCopy full SHA for 92dcf3a
packages/runtime/src/templates/server.ts
@@ -83,7 +83,7 @@ const getNetlifyNextServer = (NextServer: NextServerType) => {
83
for (const dynamicRoute in dynamicRoutes) {
84
const { dataRoute, routeRegex } = dynamicRoutes[dynamicRoute]
85
const matches = unlocalizedRoute.match(routeRegex)
86
- if (matches && matches.length !== 0) {
+ if (matches?.length > 0) {
87
// remove the first match, which is the full route
88
matches.shift()
89
// replace the dynamic segments with the actual values
0 commit comments