init: Sprout desktop app launcher

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-23 21:57:50 +08:00
commit b8ac8ab8c5
52 changed files with 13106 additions and 0 deletions

21
vite.config.ts Normal file
View File

@@ -0,0 +1,21 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig(async () => ({
plugins: [react()],
// Tauri dev server: listen on all interfaces, fixed port.
server: {
port: 5173,
strictPort: true,
host: '0.0.0.0',
hmr: {
protocol: 'ws',
host: 'localhost',
},
},
// Prevent Vite from obscuring Rust compilation errors.
clearScreen: false,
// Tauri expects a fixed port.
envPrefix: ['VITE_', 'TAURI_'],
}))