In Laravel 8 / livewire 2.5 / alpinejs 3 application in resources/js/app.js file I use https://github.com/harunurhan/idlejs to logout on some idle period of time.
But I want to set different period of time depending on APP_DEBUG in .env file.
I tried several ways described here : How to access the laravel .env variables inside javascript?
But none of them work for me.
How can I do it ?
Thanks in advance!
MIX_APP_DEBUG=${APP_DEBUG}and use that one instead. Beware that all environment variables you expose to MIX will be visible in the browser so never reveal any server variables