+1
-1
.example.env
+1
-1
.example.env
+4
-4
README.md
+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
-9
example/404.html
-9
example/index.html
-9
example/index.html
+2
-2
test/knot-client-test.js
+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);