79353293

Date: 2025-01-13 19:49:20
Score: 2.5
Natty:
Report link

in your example, you imported the API URL from .env, but it should be imported from config.js instead

const apiUrl = window.configs.VITE_LOCAL_API_URL;

https://wso2.com/choreo/docs/develop-components/develop-web-applications/build-and-deploy-a-single-page-web-application/#manage-runtime-configurations-for-web-applications

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Chamal Senarathna