This repository has been archived by the owner on Dec 12, 2023. It is now read-only.
nuxt-session requires DB connection when build/generate command is running #87
Labels
bug
Something isn't working
Environment
(I tried it also with other node version, like 18 lts and the result is the same)
Reproduction
I used npx nuxi@latest init + created one page + added sidebase/nuxt-session + added session
Download: https://github.com/wolodek/nuxt-sidebase-reproduction
Run:
npm run build
ornpm run generate
Describe the bug
When some prerendered routes are define din nuxt config nuxt-session is running on them and try to access the DB during the build/generate process. If DB is not available it shows error about db connection, if it is the whole process hangs and never exits.
Additional context
I could try to fix this by myself - I though of disabling the module during build phase, what do you think?
Logs
The text was updated successfully, but these errors were encountered: