add .env file to sails.js

 npm install dotenv 

add require('dotenv').config(); to app.js

now you can access env variable by

process.env.VARIABLE_NAME

Post a Comment

0 Comments