feat: trying to make image generation faster

This commit is contained in:
Max Richter
2025-10-24 19:39:31 +02:00
parent d4654378d9
commit fbf7c25f4b
3 changed files with 61 additions and 115 deletions

View File

@@ -28,7 +28,7 @@ export async function listResource(
): Promise<MemoriumEntry | undefined> {
const url = `${SERVER_URL}/resources/${id}`;
try {
const response = await fetch(url);
const response = await fetch(url, { signal: AbortSignal.timeout(5000) });
if (response.ok) {
const json = await response.json();
if (json.type == "dir") {