Add a desktop app with tauri

This commit is contained in:
Igor Katson 2023-12-02 22:24:36 +00:00
parent 28c2db2a37
commit 30da40555a
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
42 changed files with 15389 additions and 0 deletions

17
desktop/vite.config.ts Normal file
View file

@ -0,0 +1,17 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig(async () => ({
plugins: [react()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
port: 1420,
strictPort: true,
}
}));