How to setup Next-Intl with WorkOS Authkit #2179
Replies: 3 comments
-
|
Can you share a bit more about your use case? My experience is that many apps that need an auth layer don't use locale-based routing (which requires the Merging the headers generally looks good to me, are you able to isolate what is missing for |
Beta Was this translation helpful? Give feedback.
-
|
A reproduction is available here: https://github.com/abedshaaban/nextjs-workos-x-next-intl |
Beta Was this translation helpful? Give feedback.
-
|
Another question: Since this works for you locally, have you found if this is an issue with other hosting providers as well or could it be a bug with the Netlify setup? They currently have to use some patching until Next.js adapters stabilize. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have tried multiple ways that all work great locally, but when I push the deploy on Netlify I get a 500 error code with the message of
You are calling 'withAuth' on a route that isn’t covered by the AuthKit middleware. Make sure it is running on all paths you are calling 'withAuth' from by updating your middleware config in 'middleware.(js|ts)'.Here is my middleware:
How can I make it work in production?
Beta Was this translation helpful? Give feedback.
All reactions