Skip to content

fix(nextjs): Don't match files called middleware in node_modules #9686

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

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

lforst
Copy link
Contributor

@lforst lforst commented Nov 28, 2023

Fixes #9681

With #9637 we likely introduced a bug where we started matching any files called middleware, also inside node modules.

This PR limits the amount of files we match to a very strict list.

@lforst lforst requested review from Lms24 and AbhiPrasad November 28, 2023 11:56
@lforst lforst merged commit c29caa8 into develop Nov 28, 2023
@lforst lforst deleted the lforst-fix-middleware-matching branch November 28, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Next-auth middleware broken after installing sentry
2 participants