Routing - external routing integration #4
Brian-McBride
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
@Brian-McBride it's not documented, but this tool generates a full client router with a public API from the filesystem routes you glob. There's nothing stopping us from adapting the routes in that router to TanStack router or React Router, honestly. |
Beta Was this translation helpful? Give feedback.
0 replies
-
https://github.com/chrisdmacrae/astro-pwa/blob/main/packages/astro-pwa/src/routing/router.ts
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd love to see the project with wrappers around routers like Tanstack Router, React Router, etc.
There is so much tooling and features in these.
I have a hybrid need where much of my site I want in something like Astro, but I have an actual app need. SPA/PWA. I think at this point I might just stick with CRA or similar and run that in
app.mydomain.com
. But I sure would rater havemydomain.com/app
What is the main challenge with routing? It seems that if I took a subset
src/pages/app/[...slug].astro
and then on my server I did a SPA like redirect where everything in that app route runs into/app
- wouldn't I just end up with a SPA in Astro? Dropping something like Tanstack Router into that one route, I would think would capture routing to be client-side. I'd want to break out of it for routes external to that app path of course.Beta Was this translation helpful? Give feedback.
All reactions