How do I prevent the router plugin from auto-filling new route files with placeholder content? #6697
Replies: 2 comments
-
|
we would need a way to turn this off. currently not possible (unless you switch off the dev server) |
Beta Was this translation helpful? Give feedback.
-
|
Ran into this with AI coding agents too. The plugin has a few levers:
TanStackRouterVite({
enableRouteGeneration: process.env.TSR_DISABLE_CODEGEN !== 'true',
})Alternatively, There's also As @schiller-manuel noted, there's no standalone "disable scaffolding but keep route tree generation" toggle. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I create a new .tsx file in my routes directory, the Vite plugin automatically writes a scaffold template into it (e.g.
function RouteComponent() { return <div>Hello "/path"!</div> }. This conflicts with AI coding agents that create route files with their own content and I end up with save conficts.Beta Was this translation helpful? Give feedback.
All reactions