-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
useAuthenticatedBlitzContext fails on vercel #4309
Comments
After searching I found the differences needed to achieve the error. I have made a public repo for you to check, download it make a .env with SESSION_SECRET_KEY and a mysql db url, and run it with pnpm vercel deploy. In the last commit it errors as I said, in the commit before that, named "works" it works. |
With #4311, next 14 works for me. Maybe you can try different deploy platform like flightcontrol or railway |
@siddhsuresh @flybayer any updates on this? |
@cfragkos does version 2.0.6 fix this for you? |
no |
@siddhsuresh any updates? |
@cfragkos no, unfortunately we are unable to reproduce locally. This is a Vercel specific problem, and because they have lack of documentation, we are unable to investigate. I recommend opening a Vercel support issue. |
@timneutkens Can you take a look at this. Repro: https://github.com/gengjiawen/blitzjs-demo |
the new blitz version still having issue with vercel, had to downgrade the next version for this to work. |
What is the problem?
using useAuthenticatedBlitzContext in a server component layout creates this error, as well as getBlitzContext
Paste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
Run
blitz -v
and paste the output here:The text was updated successfully, but these errors were encountered: