I have a SvelteKit app running in Tauri and I want to expose it to other devices in my local network using the IP of the host, e.g. http://192.168.178.56:5173 where 5173 is the post the Svelte frontend should be running at.
Not sure how Tauri actually starts the server but I gues it's this part in taudi.conf.json:
"build": {
"beforeDevCommand": "npm run dev",
"devUrl": "http://localhost:5173",
"beforeBuildCommand": "npm run build",
"frontendDist": "../build"
},
So I changed my dev command in package.json and added the --host flag:
"scripts": {
"dev": "vite dev --host",
}
This should let vite expose the server and it works fine in development but not in Tauri.
Do I have to do something extra in Tauri to enable that?