Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzawa committed Dec 20, 2021
1 parent d58396c commit 581b4bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/server/base-server.ts
Expand Up @@ -676,6 +676,7 @@ export default abstract class Server {
} else if (this.dynamicRoutes) {
const isApi = isApiRoute(params.parsedUrl.pathname)
for (const dynamicRoute of this.dynamicRoutes) {
// The api route should not match with others
if (isApi && !isApiRoute(dynamicRoute.page)) continue

const matchParams = dynamicRoute.match(params.parsedUrl.pathname)
Expand Down

0 comments on commit 581b4bf

Please sign in to comment.