add certificate
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ export async function apiFetch<T>(
|
||||
res = await fetch(url, { ...init, headers })
|
||||
} catch (e) {
|
||||
const hint = import.meta.env.DEV
|
||||
? ' Start the API and ensure Vite can reach it (see vite.config.ts; default proxy is http://192.168.3.100:8000).'
|
||||
? ' Start the API and ensure Vite can reach it (see vite.config.ts; default proxy is http://localhost:8080 unless VITE_PROXY_API is set).'
|
||||
: ''
|
||||
const reason = e instanceof Error ? e.message : 'Failed to fetch'
|
||||
throw new ApiHttpError(`Network error: ${reason}.${hint}`, 0, null)
|
||||
|
||||
Reference in New Issue
Block a user