Variables are not working - Vite

eneadriancatalin
HOBBY

a year ago

In localhost i have variables called like VITE_CAPTCHA_SITE_KEY (without VITE_ they are not working) and i'm getting them with {import.meta.env.VITE_CAPTCHA_SITE_KEY}, when deploying the value isn't found. I should use process.env instead of import.meta.env? but in that way they will no work in localhost

0 Replies

eneadriancatalin
HOBBY

a year ago

b9f872be-d157-4e88-b210-1e5c848ff280


Variables are not working - Vite - Railway Help Station