From 074ad8f35b79964891c208a523bc0512d10109ef Mon Sep 17 00:00:00 2001 From: zetaloop Date: Sat, 25 Apr 2026 14:24:27 +0800 Subject: [PATCH] test(api): set server origin for API tests --- vitest.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index 301209a..b01f3ac 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -7,6 +7,9 @@ const rootDir = dirname(fileURLToPath(import.meta.url)) export default defineConfig({ test: { environment: "node", + env: { + INTERNAL_API_ORIGIN: "http://localhost", + }, include: ["tests/**/*.test.ts"], }, resolve: {