Closed pikiaboy closed 6 years ago
Values given to a .env file will not be loaded on startup. When doing
require('dotenv').config() console.log(process.env);
I only see the NODE_ENV and the PUBLIC_URL and none of the other variables I put into the .env file.
Seems that I was attempting to use React's process.env and not electron's.
To use electron's process.env, simply call console.log(window.process.env)
Values given to a .env file will not be loaded on startup. When doing
require('dotenv').config() console.log(process.env);
I only see the NODE_ENV and the PUBLIC_URL and none of the other variables I put into the .env file.