create-tsrouter-app and tanstack-start
Currently create-tsrouter-app with the tanstack-start addon selected creates a "src" folder. The tanstack-start documentation says things should be in an "app" folder. Does it matter @jherr ?
5 Replies
continuing-cyan•7mo ago
you can change this
and create-tsrouter-app does so
the default is "app"
dependent-tan•7mo ago
Post-setup you could move
src
to app
and change remove the line from the app config to return it to its default.correct-apricotOP•7mo ago
I was just wondering if this is something that needed to change in either the template or the instructions. But it sound like it makes no difference, so I'm ok with that.
dependent-tan•7mo ago
The docs should probably be loosened ("the default is
app
but you can put it in any directory by changing the configuration in...").
From the create-tsrouter-app
standpoint certainly simplification is a big thing there. But also from the user perspective. If I make three apps, code router, file router, and start, you can see a smooth progression of configuration, with the app code largely staying in the same place.
And thnk you for your help so far! Super appreciated!correct-apricotOP•7mo ago
That makes a lot of sense to see the progression.