Files
Sybil-2/web/vite.config.ts
T

25 lines
649 B
TypeScript
Raw Normal View History

2026-02-13 23:15:12 -08:00
import { defineConfig } from "vite";
import preact from "@preact/preset-vite";
import path from "node:path";
export default defineConfig({
plugins: [preact()],
// Keep syntax usable on older module-capable phones and e-readers. Web APIs
// still require feature support; this does not add a legacy polyfill bundle.
build: { target: ["chrome87", "firefox78", "safari14"] },
2026-02-14 20:28:23 -08:00
server: {
proxy: {
"/api": {
target: "http://localhost:8787",
changeOrigin: true,
rewrite: (p) => p.replace(/^\/api/, ""),
},
},
},
2026-02-13 23:15:12 -08:00
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});