Is it possible to have a nextjs-style app router?
... where (inside
app/
) route.ts
are API calls and page.ts
are pages.
Is the intention to not move in that direction to clearly separate API code from client side code?5 Replies
In what way do you see SolidStart impeding your intent of separating the two?
It seems to me the solid start router works like nextjs' Pages Router. And I would like to have it in the style of App Router.
... where only the routes named
page.js
are taken as pages routes, instead of every file used as a route.The convention that Start has adopted it that only files with a default export relate to routing
SolidStart Release Candidate Documentation
SolidStart Release Candidate Documentation
Early release documentation and resources for SolidStart Release Candidate
I see, thank you for clarifying that.