This commit is contained in:
root
2026-05-17 12:09:14 +00:00
parent a10ffe332d
commit ffdc887b8a
30 changed files with 728 additions and 111 deletions

View File

@@ -32,7 +32,7 @@ function extractErrorMessage(
}
export async function fetchJsonResponse<T>(url: string, init?: RequestInit): Promise<T> {
const response = await fetch(url, init);
const response = await fetch(url, { cache: "no-store", ...init });
const raw = await response.text();
const trimmed = raw.trim();
let payload: (T & JsonErrorPayload) | null = null;