startupjs icon indicating copy to clipboard operation
startupjs copied to clipboard

Refactor env vars to use process.env everywhere

Open cray0000 opened this issue 4 years ago • 0 comments

On server side use dotenv to load everything into process.env. On client side write a babel plugin which will transform all process.env variables from runtime env and from .env file, but only the ones which have a prefix PUBLIC_*. It might function similar to https://github.com/brysgo/babel-plugin-inline-dotenv which generates process && process.env ...

cray0000 avatar Mar 18 '22 10:03 cray0000