T
TanStack13mo ago
rival-black

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, }, });
vitejs
Server Options
Next Generation Frontend Tooling
3 Replies
rival-black
rival-blackOP13mo 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
national-gold13mo 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-black
rival-blackOP13mo ago
awesome thank you

Did you find this page helpful?