Jak ustawić zmienne ENV w JS
process.env.VAR1="foo"
process.env.VAR2="bar"
//in your env file this will appear:
//VAR1=foo
//Var2=bar
Code Sir
process.env.VAR1="foo"
process.env.VAR2="bar"
//in your env file this will appear:
//VAR1=foo
//Var2=bar
<script>
var name = '{{ env('NAME') }}';
alert(name);
</script>