Skip to content

Should routeTree.gen.ts be gitignored? #1218

Answered by SeanCassiere
psnehanshu asked this question in Q&A
Discussion options

You must be logged in to vote

I've honestly gotten into the mindset of just saving your route-tree file in git. Purely, because the file is essential to your application running and having the typecheck phase pass correctly.


Updated Answer: Don't gitignore your routeTree.gen.ts file. This file is part of your application. It's simply managed by TanStack Router.

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
6 replies
@gual
Comment options

@mrlubos
Comment options

@SeanCassiere
Comment options

Answer selected by SeanCassiere
@SeanCassiere
Comment options

@mrlubos
Comment options

@SeanCassiere
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@psnehanshu
Comment options

@jessetabak
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants