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

Next15 support #125

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Next15 support #125

merged 1 commit into from
Nov 27, 2024

Conversation

thomasballinger
Copy link
Contributor

@thomasballinger thomasballinger commented Nov 20, 2024

No description provided.

Copy link

vercel bot commented Nov 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
convex-auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 7:33pm

Copy link

pkg-pr-new bot commented Nov 20, 2024

npm i https://pkg.pr.new/get-convex/convex-auth/@convex-dev/auth@125

commit: a42eded

@thomasballinger
Copy link
Contributor Author

Iterating separately from Chadwick's branch, #118

Copy link
Contributor

@sshader sshader left a comment

Choose a reason for hiding this comment

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

So we've gotten some testing with Next 15 and the alpha version with this code -- as long as we've also manually tested that Next 14 still works (after adding all the awaits) I'm down to ship it

@thomasballinger
Copy link
Contributor Author

Just manually tested, looks good with a Next.js 14 site.

Copy link

@edproton edproton left a comment

Choose a reason for hiding this comment

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

Improve docs @thomasballinger

@@ -28,10 +26,10 @@ const isSignInPage = createRouteMatcher(["/signin"]);
const isProtectedRoute = createRouteMatcher(["/product(.*)"]);

export default convexAuthNextjsMiddleware((request, { convexAuth }) => {
Copy link

@edproton edproton Nov 29, 2024

Choose a reason for hiding this comment

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

The arrow function is lacking async here.

It should be

export default convexAuthNextjsMiddleware(async (request, { convexAuth }) => {

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.

4 participants