fix: use text import for test-api.html in Vercel deployment

Bun HTML import returns HTMLBundle object, not a string — Vercel
renders it as '[object HTMLBundle]'. Use 'with { type: "text" }'
to import as raw string so it renders properly.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
MythEclipse
2026-06-17 13:51:04 +07:00
co-authored by Claude
parent bc6edbef3e
commit bcba2c5386
+1 -1
View File
@@ -29,7 +29,7 @@ import { createRateLimiter } from "../src/middleware/rate-limiter";
import { logRelayEvent } from "../src/middleware/logger"; import { logRelayEvent } from "../src/middleware/logger";
import { handleChatCompletion, listModels } from "../src/lib/ai-proxy"; import { handleChatCompletion, listModels } from "../src/lib/ai-proxy";
import { handleAnthropicMessages } from "../src/lib/anthropic-proxy"; import { handleAnthropicMessages } from "../src/lib/anthropic-proxy";
import testApiHtml from "../public/test-api.html"; import testApiHtml from "../public/test-api.html" with { type: "text" };
// ─── Configuration ────────────────────────────────────────────────────────────── // ─── Configuration ──────────────────────────────────────────────────────────────