Skip to content

fix(nextjs): Only ignore paths that have a '.' in the final path segment#1695

Merged
brkalow merged 5 commits intomainfrom
brk.fix/next-match-static-assets
Sep 12, 2023
Merged

fix(nextjs): Only ignore paths that have a '.' in the final path segment#1695
brkalow merged 5 commits intomainfrom
brk.fix/next-match-static-assets

Conversation

@brkalow
Copy link
Copy Markdown
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
Copy Markdown

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
Comment thread packages/nextjs/src/server/authMiddleware.ts Outdated
Comment thread packages/nextjs/src/server/authMiddleware.ts Outdated
@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
@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
Copy Markdown
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