Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Sessions disappear on Vercel #66

Open
adamndev opened this issue Feb 13, 2023 · 1 comment
Open

Sessions disappear on Vercel #66

adamndev opened this issue Feb 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@adamndev
Copy link

Environment


  • Operating System: Darwin
  • Node Version: v16.13.1
  • Nuxt Version: 3.2.0
  • Nitro Version: 2.2.1
  • Package Manager: npm@9.3.0
  • Builder: vite
  • User Config: css, build, modules, imports, app, runtimeConfig, session, nuxtTypedRouter, proxy
  • Runtime Modules: nuxt-icon@0.2.11, @pinia/nuxt@0.4.6, @vueuse/nuxt@9.12.0, @nuxt-alt/proxy@2.2.0, nuxt-typed-router@2.3.4, nuxt-monaco-editor@1.1.3, @nuxtjs/tailwindcss@6.3.1, @sidebase/nuxt-session@0.2.7
  • Build Modules: -

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

@adamndev adamndev added the bug Something isn't working label Feb 13, 2023
@mariusbolik
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants