tangled
alpha
login
or
join now
ptr.pet
/
random.wisp.place
7
fork
atom
goes to a random website hosted on wisp.place
7
fork
atom
overview
issues
pulls
pipelines
redirect.html -> index.html
ptr.pet
1 week ago
c80462c3
5862940f
verified
This commit was signed with the committer's
known signature
.
ptr.pet
SSH Key Fingerprint:
SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw=
+3
-3
3 changed files
expand all
collapse all
unified
split
build.ts
deno.json
index.html
+2
-2
build.ts
···
1
1
-
const html = await Deno.readTextFile("redirect.html");
1
1
+
const html = await Deno.readTextFile("index.html");
2
2
const url = Deno.env.get("API_URL") ?? "/";
3
3
await Deno.remove("dist", { recursive: true }).catch(() => {});
4
4
await Deno.mkdir("dist");
5
5
-
await Deno.writeTextFile("dist/redirect.html", html.replaceAll("__API_URL__", url));
5
5
+
await Deno.writeTextFile("dist/index.html", html.replaceAll("__API_URL__", url));
+1
-1
deno.json
···
5
5
"start": "deno run -A --unstable-kv main.ts",
6
6
"dev": "deno run -A --unstable-kv --watch main.ts",
7
7
"build": "deno run -A build.ts",
8
8
-
"deploy": "deno task build && npm create wisp -- deploy -y --spa --path ./dist --site random did:plc:dfl62fgb7wtjj3fcbb72naae"
8
8
+
"deploy": "npm create wisp -- deploy -y --spa --path ./dist --site random did:plc:dfl62fgb7wtjj3fcbb72naae"
9
9
}
10
10
}
redirect.html
index.html