Open indeyets opened 1 year ago
Or should this issue be moved to @solidjs/router instead?
Yeah I think that it should be moved to the router
So I understand you have the same site more or less on different domains, and you would like certain routes to only appear on those Domains. The route definition is just JSON ultimately even though we use components, so it could be conditionally constructed I imagine. Unless I'm misunderstanding the use case.
I guess on the server you want to use the request to determine if the routes should be registered and in the client the current URL in the browser?
Domains might have quite different sets of urls, actually. One case is "search." subdomain which would handle a separate set of "pages"
I talk about generic ability to match over domains in addition to the current ability of matching over paths
It would be great to have support for domain-based routing. I need to be able to server different pages on different domains.
Could it be configured via additional sub-component of
<Routes>
maybe?