Replies: 5 comments 12 replies
-
The comment states
Can you elaborate why? |
Beta Was this translation helpful? Give feedback.
-
I definitely don’t need FS routing. |
Beta Was this translation helpful? Give feedback.
-
I'm against removing filesystem routing, it's actually a neat feature and straightforward to implement, I usally just copy/paste an existing directory, then renaming it, start working on it, then ta-da! a new route has been created! No extra configuration required as VPS promoted from the beginning. Also, from vite-plugin-ssr.com:
This change would be against this statement, which would break our integration. |
Beta Was this translation helpful? Give feedback.
-
Filesystem based routing in my opinion provides the smoothest DX of any routing approach. Having to edit routes in a config file somewhere every time I create a new page is a poor experience, because:
Just being honest here: If VPS dropped filesystem based routing, the first thing I'd need to do for my workflow is start investigating how to implement the same functionality myself. Doing that would really makes me wonder whether I shouldn't just create my own custom SSR implementation myself on top of Vite's low-level APIs. I've actually built on top of VPS's current filesystem based routing in my own project, adding the ability to create server-side functions in my site's routing structure by adding I'm currently "all-in" on filesystem based routing, and I'm having a hard time seeing how switching to managing my routes in a config file would make my workflow better. I'm not meaning to roast all the careful thought I'm sure you've put into this. I'm open to hearing more of the philosophy behind routing inside a config file. This is just my take, based on how I work. |
Beta Was this translation helpful? Give feedback.
-
For simple usecase, filesystem routing is essential. E.g. Each page is unrelated to each other. |
Beta Was this translation helpful? Give feedback.
-
See #578 (comment).
Edit: example of what the propsed FS-less design looks like is on the way. (You may be surprised how much easier it is than you think.)
Edit2: I've an idea how to make FS routing work very well with the V1 design. I'll show an example. We can consider this dicussion as "closed" in the meantime.
Beta Was this translation helpful? Give feedback.
All reactions