Skip to content

Commit

Permalink
Revert "Refactor Server Router" (vercel#40328)
Browse files Browse the repository at this point in the history
This temporarily reverts the refactor while we investigate
vercel#40241 further.

Reverts vercel#39902
  • Loading branch information
ijjk committed Sep 7, 2022
1 parent 35253e1 commit d5e6eb1
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 d5e6eb1

Please sign in to comment.