Skip to content

Commit 92dcf3a

Browse files
piehnickytonline
andauthored
Update packages/runtime/src/templates/server.ts
Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
1 parent 04f3164 commit 92dcf3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/templates/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const getNetlifyNextServer = (NextServer: NextServerType) => {
8383
for (const dynamicRoute in dynamicRoutes) {
8484
const { dataRoute, routeRegex } = dynamicRoutes[dynamicRoute]
8585
const matches = unlocalizedRoute.match(routeRegex)
86-
if (matches && matches.length !== 0) {
86+
if (matches?.length > 0) {
8787
// remove the first match, which is the full route
8888
matches.shift()
8989
// replace the dynamic segments with the actual values

0 commit comments

Comments
 (0)