Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
readme subdomains and github pages notes
Browse files Browse the repository at this point in the history
  • Loading branch information
h.u.g.u.rp committed Nov 8, 2023
1 parent 51a3ab8 commit 29e80fe
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,18 @@ When running a local server (here with vite), we can use subdomains in the URL j

### Subdomains

Now managed by cloudflare and a `*` wildcard CNAME for all subdomains.

How subdomain handling used to works

- cloudflare `A` record on `@` (root) to `vercel` DNS ip
- managed (authorized) by vercel DNS on `*.4000.network` and `vercel.json`
- handled by the javascript web component `network-4000.subdomain` getter
- currently make a query to github.com/:subdomain/.4000.network/.env.json

Notes:
- whatever was tried, could not make it work with github pages and
cloudflare DNS
- maybe if not `vercel` and subdomain hosting, make it work with
`/:gh_username`, as path of the app?

### Dependencies

#### HTML & user content Sanitizer
Expand Down

0 comments on commit 29e80fe

Please sign in to comment.