API doesn't work in electron? #862
Unanswered
notwatermango
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am trying to make my NextJS 14/15 app wrapped in electron. Everything is fine so far except
getIronSession
is throwing an error.When I tried logging it back the error is just
{}
I checked the
cookies()
fromnext/header
is working fine.I tried setting the cookies natively and it worked. Only the
getIronSession
is not working in electron.My setup is a template from https://github.com/spa5k/nextjs_approuter_electron
Posting here if anyone had a clue why this doesn't work. (in dev it works, only in production it doesn't)
I was suspecting my setup in electron, but I have no clue why that doesn't work.
Why setting up cookie manually in App Router handlers work but getIronSession doesn't? Is the error related to seal unseal data failure?
Beta Was this translation helpful? Give feedback.
All reactions