S
SolidJS•2mo ago
raindev.

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

vitejs
Configuring Vite
Next Generation Frontend Tooling
3 Replies
peerreynders
peerreynders•2mo 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
peerreynders•2mo 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,...
raindev.
raindev.OP•2mo ago
Thank you for your answer 🙂

Did you find this page helpful?