Unable to load environment variable in vite.config.js
I am working on a Vite project where I need to load an environment variable (APP_PORT) from a .env file in my vite.config.js. However, it seems that the variable is not being loaded correctly, and my fallback value (5000) is being used instead.
Project structure:.
How can I import lib-r-math.js in vite app?
I’m trying to use the functions in lib-r-math.js in a vite app.