How to access env variables inside app.config.ts (solid-start)?
This is how it is done with vite: https://vite.dev/config/#using-environment-variables-in-config
2 Replies
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.
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,...