Bootstrap tauri app in client

This commit is contained in:
Mathias Wagner
2025-09-09 14:25:09 +02:00
parent 3bb2dcabaf
commit 87efa1cf0e
31 changed files with 6612 additions and 0 deletions

25
client/vite.config.js Normal file
View File

@@ -0,0 +1,25 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const host = process.env.TAURI_DEV_HOST;
export default defineConfig(async () => ({
plugins: [react()],
clearScreen: false,
server: {
port: 1420,
strictPort: true,
host: host || false,
hmr: host
? {
protocol: "ws",
host,
port: 1421,
}
: undefined,
watch: {
ignored: ["**/src-tauri/**"],
},
},
}));