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(nextjs): Only ignore paths that have a '.' in the final path segment #1695

Merged
merged 5 commits into from
Sep 12, 2023

Conversation

BRKalow
Copy link
Member

@BRKalow BRKalow commented Sep 7, 2023

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/clerk-js
  • @clerk/clerk-react
  • @clerk/nextjs
  • @clerk/remix
  • @clerk/types
  • @clerk/themes
  • @clerk/localizations
  • @clerk/clerk-expo
  • @clerk/backend
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/fastify
  • @clerk/chrome-extension
  • gatsby-plugin-clerk
  • build/tooling/chore

Description

  • npm test runs as expected.
  • npm run build runs as expected.

Updates our middleware default matcher and IGNORED_ROUTES pattern to allow matching of paths that contain a . that is not in the last path segment, but does not match paths that contain a . in the last segment (presumably this would be a static asset).

Fixes JS-694

@changeset-bot
Copy link

changeset-bot bot commented Sep 7, 2023

🦋 Changeset detected

Latest commit: 20370a5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clerk/nextjs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@BRKalow BRKalow marked this pull request as ready for review September 7, 2023 22:53
@BRKalow BRKalow requested a review from a team September 7, 2023 22:53
@BRKalow BRKalow requested review from a team and dimkl September 11, 2023 15:41
@BRKalow BRKalow force-pushed the brk.fix/next-match-static-assets branch from 4dfccd5 to da06d41 Compare September 12, 2023 13:23
@BRKalow BRKalow merged commit 64dfbf9 into main Sep 12, 2023
6 checks passed
@BRKalow BRKalow deleted the brk.fix/next-match-static-assets branch September 12, 2023 14:17
@clerk-cookie clerk-cookie mentioned this pull request Sep 12, 2023
@clerk-cookie
Copy link
Collaborator

This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@clerk clerk locked as resolved and limited conversation to collaborators Sep 12, 2024
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.

5 participants