Dotenv Package
Install dotenv package
npm i dotenv
Using dotenv package
dotenv.config(object with path property equalling path to the config.env file);
Here is an example of the config.env file
These are the environment variables you may need to use inside of a config.env
file in order to use ScheduleIt.
STATIC_FOLDER
This environment variable will represent exactly where your static or built assets would be stored. This may be needed if you have either used something like Create React App or done a basic Frontend Website for your personal website. Essentially, if you have not already stated where the root folder would be of your website or application like below, you more likely will need this environment variable to get things working.
PROD_URL
I will just state this. To be able to allow things to be more secure, setting a production url is going to be necessary for the content security policy for a different npm package called helmet.
PORT
The port variable will also be needed just in case for helmet.