Allow external API access via env config

This commit is contained in:
2026-04-24 12:00:36 -03:00
parent 96058f5275
commit 52aa6688b8
+1 -1
View File
@@ -52,7 +52,7 @@ interface HospitalState {
} }
const API_BASE = 'http://localhost:4000/api'; const API_BASE = import.meta.env.VITE_API_URL || 'http://localhost:4000/api';
const defaultState = (): HospitalState => ({ const defaultState = (): HospitalState => ({
pacientes: [], pacientes: [],