fix dev config

This commit is contained in:
2026-02-14 20:28:23 -08:00
parent ebb208fbde
commit 7b6b42f885
9 changed files with 20 additions and 57 deletions

View File

@@ -4,6 +4,15 @@ import path from "node:path";
export default defineConfig({
plugins: [preact()],
server: {
proxy: {
"/api": {
target: "http://localhost:8787",
changeOrigin: true,
rewrite: (p) => p.replace(/^\/api/, ""),
},
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),