-
Notifications
You must be signed in to change notification settings - Fork 38
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
Does not work with nuxt generate #4
Comments
I too am experiencing this issue. I have tried on Netlify and also with Firebase. Dev and build are fine, but generate is not working with page reload. The cookie is available in all instances. |
in helpers/index.js Is this why generate is having issues with session persistence on page refresh? I see cookieparser is 6 years without an update now so maybe this is the issue. |
The issue seems to be with helpers/index.js Replacing "function getUserFromCookie" with the code below does work with "nuxt generate" (ie: page refresh does not reset the session) BUT only on local with "nuxt start" and not on production server. :(
|
If I understood correctly to make this work there should be an interaction between the nuxt client and the nuxt server. When you use generate you get only static files once and so there will not be any interaction while you are using the application. |
When I run this example with
npm run dev
it works as expected, but when I try it with the generated version (npm run generate
) and I reload the page or open a new tab it ask me again to sign in.I tried on netlify and locally using a local server (
npm run generate && cd dist/ && python -m SimpleHTTPServer 9090
)Do you know how can I can get this to work?
The text was updated successfully, but these errors were encountered: