Unverified Commit d5e6eb1e authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Revert "Refactor Server Router" (#40328)

This temporarily reverts the refactor while we investigate
https://github.com/vercel/next.js/issues/40241 further.

Reverts vercel/next.js#39902
parent 35253e1a
...@@ -221,6 +221,7 @@ export default class DevServer extends Server { ...@@ -221,6 +221,7 @@ export default class DevServer extends Server {
for (const path in exportPathMap) { for (const path in exportPathMap) {
const { page, query = {} } = exportPathMap[path] 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({ this.router.addFsRoute({
match: getPathMatch(path), match: getPathMatch(path),
type: 'route', type: 'route',
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment