You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm trying to build my svelte app with the node adapter, but it errors, because i want to set the session secret via an environment variable when launching the server:
Error: Please provide at least one secret
at normalizeConfig (file:///redacted/node_modules/svelte-kit-cookie-session/utils.js:12:15)
at new CookieSession (file:///redacted/node_modules/svelte-kit-cookie-session/core.js:14:24)
at Object.handle (file:///redacted/node_modules/svelte-kit-cookie-session/handle.js:4:25)
at respond (file:///redacted/.svelte-kit/output/server/index.js:2205:42)
at async visit (file:///redacted/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:190:20)
Is it possible to fix that or do i have to think about a different way where i dont have to build the app with a hardcoded sessionsecret?
The text was updated successfully, but these errors were encountered:
I'm sorry, the issue is not fixed. I had an .env in my project while building the app, that's why it was working. But after i renamed it, i was'nt able to build again.
Hi,
i'm trying to build my svelte app with the node adapter, but it errors, because i want to set the session secret via an environment variable when launching the server:
src/hooks.server.js
:Error when running
npm run build
:Is it possible to fix that or do i have to think about a different way where i dont have to build the app with a hardcoded sessionsecret?
The text was updated successfully, but these errors were encountered: