feat(core): image hosts (server, litterbox, catbox, direct) and per-image rehosting

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas WintherandClaude Opus 5.5 committed 2026-10-14 23:38:22 +02:00
1 parent 1e548701ca
commit a6c02cb548
8 files changed
+295

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import { viaServer, type ImageHost } from "./host";
/** Our server's covers folder; swept after 30 days (spec §4.6). */
export const serverHost: ImageHost = {
id: "server",
lifetime: () => "30 days",
upload: (image, ctx) => viaServer(image, ctx, { host: "store" }),
};