.env variables not working with Remix + Vite
I have tried include everying to wrangler.toml from [vars] to [env.production.vars] , [env.preview.vars]. An my web application can not use the API, the api does work in local.
![No description](https://cdn.answeroverflow.com/1243709210466717767/image.png)
![No description](https://cdn.answeroverflow.com/1243709210793869382/image.png)
1 Reply
I fixed it!!! Using import.meta instead of process.
![No description](https://cdn.answeroverflow.com/1243717530216960010/image.png)