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
thank you, I had read both of them. But please do note process.env.DEBUG and process.env["DEBUG"] appear not to be same. It's alright if you are accessing them yourself, but an npm package like debug, I suppose expects process.env.DEBUG and not the latter.
Describe the problem
I have been trying to expose DEBUG flag to
debug
server side endpoints and hooks through.env
usingdotenv
package but I couldn't succeed.Describe the proposed solution
It seems vite has some configuration options that can be used, but I'm not sure how to place this to svelte.config.js
vitejs/vite#2676
Alternatives considered
I was able to workaround this by using
dotenv-cli
and package.jsonImportance
nice to have
Additional Information
If there is an official way, it would be nice to have this in the docs.
The text was updated successfully, but these errors were encountered: