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:
+1
-1
@@ -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 ──────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user