diff --git a/src/app/api/[...path]/proxy-ipfs.ts b/src/app/api/[...path]/proxy-ipfs.ts index 6ff4743..a71ab7e 100644 --- a/src/app/api/[...path]/proxy-ipfs.ts +++ b/src/app/api/[...path]/proxy-ipfs.ts @@ -6,13 +6,11 @@ export async function proxyIPFS(path: string, method: string, req: NextRequest): // Normalize path const p = path.replace(/^\/+/, '').replace(/\/+$/, ''); - // ── Lokale pin opslag (zonder Kubo) ── - // Wanneer KUBO_API_URL niet beschikbaar is, gebruik lokale JSON file + // ── Lokale pin opslag (altijd, ongeacht Kubo) ── + // Pins worden lokaal opgeslagen in .data/pins.json + // Kubo wordt later toegevoegd voor productie if (p === 'pins' || p.startsWith('pins/')) { - const kuboSvc = kuboApiUrl(); - if (!kuboSvc) { - return handleLocalPins(p, method, req); - } + return handleLocalPins(p, method, req); } // In dev, the Kubo API is behind nginx with Basic Auth.