lukeed / lukeed/worktop

hostname routing

Open
#3 4 comments 4 reactions 1 assignee View on GitHub

@lukeed is already working on this.

Since Mar 10, 2021.

enhancement feedback wanted
Dominant language
TypeScript
Stars
1.7k
Forks
41
PR merge metrics
No merged PRs in 30d

Description

The idea is to allow the same worker to service multiple domains ("zones"). Through [Worker Routes](https://developers.cloudflare.com/workers/platform/routes), there's no reason why you can't/shouldn't be able to do this in a real application.

And with SSL for SaaS, this may be way more common.

- [x] add `hostname` to request data
- [ ] add `App.host('example.com').add('GET', '/foo', handler)` API

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.