Is there a way to set vite.config.ts server.open option in Start?
https://vitejs.dev/config/server-options.html#server-open
Its a quality of life feature to automatically open the app in the browser on server start.
export default defineConfig({
plugins: [TanStackRouterVite(), react()],
server: {
open : true,
},
});
3 Replies
rival-blackOP•13mo ago
SInce the repo im using only has app.config.ts, is the solution to have both an app.config.ts and a vite.config.ts?
national-gold•13mo ago
GitHub
add --open · Issue #366 · nksaraf/vinxi
vite dev supports --open to open the localhost app in the browser. i think vinxi cli should too.
rival-blackOP•13mo ago
awesome thank you