Static site hosting via tangled

Update example

+1 -1
.example.env
··· 2 2 # note these aren't secrets, just config 3 3 KNOT_DOMAIN = "knot.gracekind.net" 4 4 OWNER_DID = "did:plc:p572wxnsuoogcrhlfrlizlrb" 5 - REPO_NAME = "static-site-example" 5 + REPO_NAME = "tangled-pages-example"
+4 -4
README.md
··· 1 1 # tangled-pages 2 2 3 - This gives you a way to host a website via a tangled repo. 3 + A simple way to host a website via a tangled repo. 4 4 You can run it as a cloudflare worker or as an express server. 5 5 6 - Create .env: 6 + Create .env pointing to your repo: 7 7 8 8 ``` 9 9 KNOT_DOMAIN=knot.gracekind.net 10 10 OWNER_DID=did:plc:p572wxnsuoogcrhlfrlizlrb 11 - REPO_NAME=static-site-example 11 + REPO_NAME=tangled-pages-example 12 12 ``` 13 13 14 - Run: 14 + Run server: 15 15 16 16 ```bash 17 17 npm install
-9
example/404.html
··· 1 - <html> 2 - <head> 3 - <title>404 Not Found</title> 4 - </head> 5 - <body> 6 - <h1>404 Not Found</h1> 7 - <p>This is an example of a custom 404 page.</p> 8 - </body> 9 - </html>
-9
example/index.html
··· 1 - <html> 2 - <head> 3 - <title>Tangled Pages Example</title> 4 - </head> 5 - <body> 6 - <h1>Tangled Pages Example</h1> 7 - <p>This is an example of a static page hosted on a tangled repo!</p> 8 - </body> 9 - </html>
-2
pages_config.yaml
··· 1 - baseDir: /example 2 - notFoundFilepath: /404.html
+2 -2
test/knot-client-test.js
··· 1 - import { createUnsignedClient } from "./knot-client.js"; 1 + import { createUnsignedClient } from "../src/knot-client.js"; 2 2 3 3 const OWNER_DID = "did:plc:p572wxnsuoogcrhlfrlizlrb"; 4 - const REPO_NAME = "static-site-example"; 4 + const REPO_NAME = "tangled-pages-example"; 5 5 const KNOT_DOMAIN = "knot.gracekind.net"; 6 6 7 7 const client = createUnsignedClient(KNOT_DOMAIN);