Google reCAPTCHA v3 sitekey missing (only in production)

I'm trying to add reCAPTCHA v3 to my website, it is made with React.js and Vite, hosting with Netlify. I am storing the sitekey variable in a .env file using "VITE_" as the prefix, and calling it with "import.meta.env" instead of "process.env" (gives errors otherwise). It works perfectly in localhost but for some reason in production I get the error: "Missing required parameters: sitekey", when console.logging the variable it comes out as undefined. I also tried to add the variable through Netlify but it also comes out as undefined.. Can anyone help me? Thanks in advance!
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server