This commit is contained in:
2026-04-01 11:50:32 +02:00
parent c2d1587c82
commit 945115527f
13 changed files with 379 additions and 12 deletions

View File

@@ -7,6 +7,7 @@ const host = process.env.TAURI_DEV_HOST;
// https://vite.dev/config/
export default defineConfig(async () => ({
envPrefix: ['VITE_', 'TAURI_ENV_*'],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent Vite from obscuring rust errors
@@ -61,7 +62,7 @@ export default defineConfig(async () => ({
// 2. tauri expects a fixed port, fail if that port is not available
server: {
port: 1420,
strictPort: true,
strictPort: false,
host: host || false,
hmr: host
? {