16 lines
468 B
TypeScript
16 lines
468 B
TypeScript
import react from "@vitejs/plugin-react";
|
||
import { defineConfig } from "vite";
|
||
|
||
export default defineConfig({
|
||
plugins: [react()],
|
||
server: {
|
||
// 聽所有網路介面:同一個 Wi-Fi 的手機、平板可以用這台電腦的 IP 連進來試玩
|
||
host: "0.0.0.0",
|
||
// 遊戲 API(backend/apps/server,pnpm --filter @election2026/server start)
|
||
proxy: { "/api": "http://127.0.0.1:8787" },
|
||
},
|
||
test: {
|
||
include: ["test/**/*.test.ts"],
|
||
},
|
||
});
|