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 invalid middleware regexp in manifest #37492

Merged
merged 1 commit into from
Jun 6, 2022

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Jun 6, 2022

This fixes invalid regexp being output in the middleware manifest causing deployments to fail and invalid regex to be used for matching locally. Our E2E tests caught this after the canary publish although I have added additional integration tests to catch this earlier.

Bug

  • Related issues linked using fixes #number
  • Integration tests added
  • Errors have helpful link attached, see contributing.md

x-ref: #37177
Fixes: https://github.com/vercel/next.js/runs/6762816907?check_suite_focus=true

@ijjk ijjk added created-by: Next.js team PRs by the Next.js team. type: next labels Jun 6, 2022
@ijjk ijjk marked this pull request as ready for review June 6, 2022 21:25
files: ['server/edge-runtime-webpack.js', 'server/middleware.js'],
name: 'middleware',
page: '/',
regexp: '^/.*$',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the value prior to the change? An empty string?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah an empty string so it passed the nullish check

@ijjk ijjk merged commit b300059 into vercel:canary Jun 6, 2022
@ijjk ijjk deleted the fix/middleware-regexp branch June 6, 2022 21:37
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants