Open cleptric opened 1 year ago
It seems:
Vite doesn't load .env files by default
So I needed to follow Vite's guide on how to use Environment variables within their config file
Not sure if this has changed recently but this plugin's example is wrong.
@owenjs I don't think any bundler loads .env files by default. I also don't think our example is wrong. If you wanna use vite's way of accessing environment configuration you have to do that, otherwise (as it says in those docs) "Environmental Variables can be obtained from process.env
as usual".
@cleptric thanks for raising this, will fix.
Using loadEnv
did the trick https://main.vitejs.dev/config/#using-environment-variables-in-config
Thank you
On https://docs.sentry.io/platforms/javascript/guides/vue/sourcemaps/uploading/vite/, we mention
However, running
vite
, I get the following output.