Open DanielhCarranza opened 1 year ago
Thanks for reporting. I can reproduce this. It's unfortunate that nextjs app directory behaves so differently locally vs when deployed. Still investigating the exact issue here.
I think there is an issue with next/headers
: https://github.com/vercel/next.js/issues/45371 . We're currently checking with the Vercel team.
@thorwebdev It looks like this has been fixed? Can you confirm?
When I tried to get the subscription from the method
getSubscriptions()
fromsupabase-server
withinapp/page_name/page.tsx
I got this error only when deploying but not in development.I want to protect the page or redirect when the subscription is not active or trialing. That's my end goal.
Here is the error when I try to access that page in vercel.
The error comes from this method: