fix(frontend): Use relative URL for health endpoint
This commit is contained in:
@@ -4,7 +4,7 @@ export const lastCheckTime = ref<Date | null>(null)
|
||||
|
||||
export function useServerHealth() {
|
||||
const checkInterval = ref<NodeJS.Timeout | null>(null)
|
||||
const healthCheckUrl = 'http://localhost:3001/api/actuator/health'
|
||||
const healthCheckUrl = '/api/actuator/health'
|
||||
|
||||
async function checkServerHealth(): Promise<boolean> {
|
||||
if (isChecking.value) return isServerAvailable.value
|
||||
|
||||
Reference in New Issue
Block a user