This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
darrel.anthony35716
Hi
I have a /.env file containing various environment settings for the site. I have a themes/my-theme/assets/js/app.js file containing some JS code that runs on all pages. I want to output a value from the env file in the app.js file itself. To be clear I want to add a JS variable called timeout and assign it the value specified by the TIMEOUT setting in the .env file.
Any ideas on how to do this?
1-1 of 1