Closed caverav closed 11 hours ago
frontend/src/routes/profile/profile.tsx (2)
`50-50`: **Excelente uso de variables de entorno para la URL de la API** El cambio a `import.meta.env.VITE_API_URL` mejora la flexibilidad y facilita la configuración en diferentes entornos. ¡Buen trabajo! --- `50-50`: **Asegurar la definición de VITE_API_URL en todos los entornos** Es importante confirmar que la variable de entorno `VITE_API_URL` esté definida en todos los entornos de ejecución para evitar errores en tiempo de ejecución.
xq la url debe ir con el nombre VITE_API_URL?
xq la url debe ir con el nombre VITE_API_URL?
Se explica bien en la documentación (https://vitejs.dev/guide/env-and-mode) pero básicamente las variables iniciadas en VITE_ se exponen al cliente, cualquier otra no
Descripción
Se agrega el uso de variables de entorno para las URLs de la API
Motivación y Contexto
Está mal hardcodear las URLs, fixes #99
¿Cómo ha sido probado?
Probar el flujo de la aplicación, funcionando correctamente las llamadas a la API
Tipos de cambios
Lista de verificación:
Summary by CodeRabbit
Nuevas Funciones
.env.example
que proporciona una plantilla de configuración para las variables de entorno, facilitando la configuración del entorno de desarrollo..env
en el proceso de construcción del contenedor.Mejoras
Correcciones