SSR Not Working On Cloudflare
I am using Nuxt in my project and have copied the Better Auth setup from nuxthub-better-auth repo that seems to be working fine in their example.
Everything is working fine, the SSR is working fine for everything BUT user/session data. as you can see here https://sutando-client-example.dventures.workers.dev/ as compared to the example https://better-auth.nuxt.dev/user
You can see in the
__NUXT_DATA__
that the user list api data is there during SSR, but not the user & session data from BetterAuth.
Anyone know what could be going wrong?GitHub
GitHub - atinux/nuxthub-better-auth: A demo of using Better Auth wi...
A demo of using Better Auth with Nuxt & NuxtHub (Cloudflare D1 & KV). - atinux/nuxthub-better-auth
Solution:Jump to solution
Solved kinda .... NuxtHub uses Pages - the SSR for the BetterAuth only seems to work on Pages and not Workers
4 Replies
Solution
Solved kinda .... NuxtHub uses Pages - the SSR for the BetterAuth only seems to work on Pages and not Workers
try on Pages
actually nvm my issue was unrelated and caused by the organization plugin requiring a new arg.