Something went wrong. Try again.
[AWIP] Local-first peer-to-peer connectivity and sharing across Android, Linux and Windows, made with Tauri
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637import { defineConfig } from "vite";import adapter from "@sveltejs/adapter-static";import { sveltekit } from "@sveltejs/kit/vite";import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";// @ts-expect-error type error without @types/node packageimport process from "node:process";const host = process.env.TAURI_DEV_HOST;
// https://vite.dev/config/export default defineConfig(() => ({ plugins: [ sveltekit({ adapter: adapter({ fallback: "index.html", }), preprocess: vitePreprocess(), }), ],
clearScreen: false, server: { port: 1420, strictPort: true, host: host || "127.0.0.1", hmr: host ? { protocol: "ws", host, port: 1421, } : undefined, watch: { ignored: ["**/src-tauri/**"], }, },}));