Skip to content

Commit

Permalink
update check
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jul 1, 2022
1 parent 0106f1f commit d6d7518
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next/server/get-route-from-entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export default function getRouteFromEntrypoint(
}

if (app) {
pagePath = matchBundle(APP_ROUTE_NAME_REGEX, entryFile) || '/'
pagePath = matchBundle(APP_ROUTE_NAME_REGEX, entryFile)
if (typeof pagePath === 'string' && !pagePath) pagePath = '/'
if (pagePath) return pagePath
}

Expand Down

0 comments on commit d6d7518

Please sign in to comment.