Flowise
Flowise copied to clipboard
JS Function and Plan Passwords
Is there a way to pass secrets in non-visible way. What we have now
const HOST = 'host;
const USER = 'user';
const PASSWORD = 'visiablepassword:(';
const DATABASE = 'db_name';
const TABLE = 'table_name';
//console.log(`========== User: ${USER}, DATABASE: ${DATABASE} =====`);
// console.log("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
// console.log(process.env); // output {} as process.env is not included
// console.log("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
I would like to be able to do something like
const HOST = process.env.DATABSE_HOST;
const USER = process.env.DATABSE_USER;
const PASSWORD = process.env.DATABSE_PASSWORD;
const DATABASE = process.env.ECO_HOTEL_DATABASE;
const TABLE = process.env.ECO_HOTEL_TABEL;
Is there a way to pass the envs?
we'll soon bring vars to custom JS function, stay tuned! https://docs.flowiseai.com/using-flowise/variables