Add kiosk desktop app
Tauri app for the Pi. Media runs through the native LiveKit SDK because WebKitGTK has no WebRTC, with frames encoded in Rust and drawn to a canvas under the annotation overlay.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
import { sveltekit } from "@sveltejs/kit/vite";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import { defineConfig, searchForWorkspaceRoot } from "vite";
|
||||
|
||||
const host = process.env.TAURI_DEV_HOST;
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), sveltekit()],
|
||||
|
||||
ssr: {
|
||||
noExternal: ["@pistation/shared-types", "@pistation/client-core", "@pistation/ui"]
|
||||
},
|
||||
|
||||
optimizeDeps: {
|
||||
include: ["react", "react-dom", "react-dom/client"]
|
||||
},
|
||||
|
||||
define: {
|
||||
"process.env.IS_PREACT": JSON.stringify("false")
|
||||
},
|
||||
|
||||
clearScreen: false,
|
||||
|
||||
server: {
|
||||
port: 1420,
|
||||
strictPort: true,
|
||||
host: host || false,
|
||||
hmr: host ? { protocol: "ws", host, port: 1421 } : undefined,
|
||||
fs: {
|
||||
allow: [searchForWorkspaceRoot(process.cwd())]
|
||||
},
|
||||
watch: {
|
||||
ignored: ["**/src-tauri/**"]
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user