Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

luarsab's avatar

Import env / process env imports VUE 3 vite

Hello, i want to import my back-end url from .env i need to import it in something like this. but it doesn't work. import.meta.env also not allowed. What should i do? It is just impossible and i should place it in the some store and then take the store-s result ?

0 likes
3 replies
luarsab's avatar

@Sinnbeck I use vue in independent folder, laravel documentation will not help me i think. Also i already did this by create global state with import meta env inside. Nothing else helped so :d

Please or to participate in this conversation.