envalid icon indicating copy to clipboard operation
envalid copied to clipboard

support import.meta.env

Open o-az opened this issue 1 year ago • 2 comments

o-az avatar Sep 19 '24 00:09 o-az

Doesn't this already work? It works for me in Vite projects for example.

Just use:

cleanEnv(import.meta.env, {
  // ...
})

m4rvr avatar Nov 21 '24 12:11 m4rvr

Yeah, I used it and it worked for me too

KillDozerX2 avatar Dec 19 '24 07:12 KillDozerX2

Works for me as well, closing this

af avatar Jun 29 '25 16:06 af