#Default tauri port
5 messages · Page 1 of 1 (latest)
In development? The create-tauri-app templates use 1420 by default. This is up to the frontend, not tauri though. So in most templates you can change it in the vite.config file - don't forget to update devUrl in tauri.conf.json so tauri knows where to look for though.
In production? There's no port.
thank you for the fast reply
I wanted to use puppeteer to record my tauri app using a nodejs script, but if there's no port in production this will not work anymore
as puppeteer works with this await page.goto('http://localhost:3000');
yeah, that's problematic then. Not only because there's no port but also because the website is only accessible from inside the webview / tauri app.
You could change both behaviors via https://v2.tauri.app/plugin/localhost/ but that would obviously expose the frontend to the whole machine if that's a concern.