79277914

Date: 2024-12-13 10:15:06
Score: 1
Natty:
Report link

In Vite you should use import.meta.env and not process.env because it will run in the browser.

Example :

console.log('API URL:', import.meta.env.VITE_API_URL);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yatsuki