Skip to content

Commit

Permalink
Revert "Refactor Server Router (#39902)"
Browse files Browse the repository at this point in the history
This reverts commit 0b57a01.
  • Loading branch information
ijjk committed Sep 7, 2022
1 parent 084ad96 commit 5ad2b68
Show file tree
Hide file tree
Showing 2 changed files with 214 additions and 265 deletions.
1 change: 1 addition & 0 deletions packages/next/server/dev/next-dev-server.ts
Expand Up @@ -221,6 +221,7 @@ export default class DevServer extends Server {
for (const path in exportPathMap) {
const { page, query = {} } = exportPathMap[path]

// We use unshift so that we're sure the routes is defined before Next's default routes
this.router.addFsRoute({
match: getPathMatch(path),
type: 'route',
Expand Down

0 comments on commit 5ad2b68

Please sign in to comment.