How do you go about accessing the various variables that are setup in the system. Such as “url” or “db_con_string” as setup in the oxygen.env.js file?
If I have set the Env via Settings as “Test”
Also when running via CLI how do I reference the Environment variables there also?
--------------- Pasted directly from your site -------------------
module.exports = {
TEST: {
url: 'https://test.wikipedia.org',
db_con_string: 'Driver={SQL Server};Server=DESKTOP\\SQLEXPRESS;Database=test;'
username: 'test.user',
password: 'test123'
},
PROD: {
url: 'https://wikipedia.org',
db_con_string: 'Driver={SQL Server};Server=DESKTOP\\SQLEXPRESS;Database=prod;',
username: 'username',
password: 'password'
},
}