diff --git a/src/config/environment.js b/src/config/environment.js new file mode 100644 index 000000000..5a770d75d --- /dev/null +++ b/src/config/environment.js @@ -0,0 +1,14 @@ +// config/environment.js + +const dotenv = require('dotenv'); + +// Load environment variables from a .env file into process.env +dotenv.config(); + +const environment = { + NODE_ENV: process.env.NODE_ENV || 'development', + PORT: process.env.PORT || 3000, + API_URL: process.env.API_URL || 'http://localhost:3000/api', +}; + +module.exports = environment;