Allow external API access via env config
This commit is contained in:
@@ -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 => ({
|
||||
pacientes: [],
|
||||
|
||||
Reference in New Issue
Block a user