Actually I’m kind of surprised that it worked in CRA as well. It was not supposed to. This would shed some light:
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Unable to access Netlify environment variables when using Vite with react | 8 | 6925 | February 19, 2023 | |
Can't access environment variables in Vite Vue deploy | 4 | 1656 | March 27, 2023 | |
React Vite environment variables deployed with CircleCI | 2 | 2239 | July 7, 2022 | |
How to access Netlify Continuous Deployment Pre-Defined Env. Variables in client side JS? | 12 | 3889 | October 14, 2019 | |
Environment variables for react | 1 | 1661 | September 28, 2020 |