Lucia 2.6: Migrate to v3 Next.js middleware API #1116
pilcrowonpaper
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Lucia 2.6, we introduced a new middleware:
nextjs_future()
This will replace the existing
nextjs()
middleware in v3. Whilenextjs()
won't be deprecated, we recommend migrating early. This newer middleware makes every a bit more consistent and properly supports the experimental form actions. To migrate, replacenextjs()
withnextjs_future()
middleware.If you're using Next.js 12 or the Pages Router, there are no changes. For Next.js 13 users, here are the new APIs:
Beta Was this translation helpful? Give feedback.
All reactions