tangled-pages#
This gives you a way to host a website via a tangled repo. You can run it as a cloudflare worker or as an express server.
Create .env:
KNOT_DOMAIN=knot.gracekind.net
OWNER_DID=did:plc:p572wxnsuoogcrhlfrlizlrb
REPO_NAME=static-site-example
Run:
npm install
npm start
Config#
You can configure the pages service by creating a pages_config.yaml file in the root of the repo.
baseDir: "/public"
notFoundFilepath: "404.html"
Limitations#
It fetches files from the repo on request, so it might be slow. In the future, we could cache the files and use a CI to update the cache.