How to access env variables inside app.config.ts (solid-start)?

vitejs
Configuring Vite
Next Generation Frontend Tooling
2 Replies
peerreynders
peerreynders2w ago
The examples I've seen just use the mechanism offered by the particular JS runtime you are using; so for Node.js it's just process.env
Node.js — How to read environment variables from Node.js
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
peerreynders
peerreynders2w ago
GitHub
How to do conditional vite config depending on mode (i.e. dev or pr...
In pre-beta2, we can still use this https://vitejs.dev/config/#conditional-config where defineConfig can accept a function that has mode that determine development or production. However in beta-2,...
Want results from more Discord servers?
Add your server