sidebase / nuxt-session

Nuxt session middleware to get a persistent session per app user, e.g., to store data across multiple requests. The nuxt session module provides the useSession() composable out of the box and sets up API endpoints to interact with your session to make working with sessions feel like a breeze.
https://sidebase.io/nuxt-session/
MIT License
189 stars 19 forks source link

Sessions disappear on Vercel #66

Open adamndev opened 1 year ago

adamndev commented 1 year ago

Environment


Reproduction

Deploy the playground to Vercel

Describe the bug

Sessions can be retrieved for a number of seconds before the next refresh/request receives a blank session with a different id

Additional context

No response

Logs

No response

mariusbolik commented 1 year ago

Vercel uses Cloud Functions which isn't ideal for Session. I recommend using a real node Server like fly.io or Heroku.