Vite Plugin does not support custom .env file locations #13215
Replies: 4 comments
-
|
Vite does support the |
Beta Was this translation helpful? Give feedback.
-
Yea and that works to get env vars into the front end side. But not a worker, as far as I can tell. |
Beta Was this translation helpful? Give feedback.
-
|
If that is so then we should probably support that. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What versions & operating system are you using?
The new .env feature for wrangler allows passing a
--env-fileparameter to specify the location of the.envfile. This is super helpful in monorepos.However, the vite plugin does not currently support this and only looks for .env files in the current directory.
Please provide a link to a minimal reproduction
No response
Describe the Bug
Please provide any relevant error logs
No response
Beta Was this translation helpful? Give feedback.
All reactions