Skip to content

Exposing environmental variables only to main process #894

Answered by cawa-93
Martiinii asked this question in Q&A
Discussion options

You must be logged in to vote

You may customize prefixes. See envPrefix. In your case, probably needed add two diferent prefixes: ['VITE_', 'MAIN_']. VITE_ for shared environmental variables, and MAIN_ only for main process. Like MAIN_DB_PASSWORD

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cawa-93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants