From bcba2c5386db2a0799869e34762c5eb9f076df3e Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Wed, 17 Jun 2026 13:51:04 +0700 Subject: [PATCH] fix: use text import for test-api.html in Vercel deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- api/relay.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/relay.ts b/api/relay.ts index dcddebb..3490b3b 100644 --- a/api/relay.ts +++ b/api/relay.ts @@ -29,7 +29,7 @@ import { createRateLimiter } from "../src/middleware/rate-limiter"; import { logRelayEvent } from "../src/middleware/logger"; import { handleChatCompletion, listModels } from "../src/lib/ai-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 ──────────────────────────────────────────────────────────────