solidjs / solidjs/solid-router
Router: domain-based routing
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 180
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 19
Description
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?
<Routes>
<DomainRoutes domain=":language.example.com">
<Route path="/some-page" component={LocalizedPage} />
</DomainRoutes>
<Route path="/some-page" component={DefaultPage} />
</Routes>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing and entry points and how route matching exposes the current URL. Define how a domain-aware route such as should coexist with the default , then verify that different domains select LocalizedPage or DefaultPage as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100