How to add environment variable in jsreport



  • Hi sir,
    We are running jsreport in aws using docker. I want to use this environment varibles in global helpers also.Can you please show me one example?



  • Just like you would do this in the node.js

    const process = require('process')
    function myHelper() {
        return process.env.MY_VAR
    }
    

Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.