preact
This commit is contained in:
parent
6acf267d48
commit
b7614eb3f8
4794 changed files with 1280808 additions and 1546 deletions
18
frontend/vite.config.ts
Normal file
18
frontend/vite.config.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { defineConfig } from "vite";
|
||||
import preact from "@preact/preset-vite";
|
||||
|
||||
const backendUrl = process.env.VITE_BACKEND_URL || "http://localhost:8000";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [preact()],
|
||||
server: {
|
||||
proxy: {
|
||||
"/rtc": backendUrl,
|
||||
"/health": backendUrl,
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: "dist",
|
||||
emptyOutDir: true,
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue