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!