Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(next): Do not display message when middleware is removed on dev mode #39604

Merged
merged 10 commits into from Aug 20, 2022
1 change: 0 additions & 1 deletion packages/next/server/next-server.ts
Expand Up @@ -1636,7 +1636,6 @@ export default class NextNodeServer extends BaseServer {
return { finished: false }
}
if (!(await this.hasMiddleware(middleware.page))) {
console.warn(`The Edge Function for ${middleware.page} was not found`)
return { finished: false }
}

Expand Down