Scaffold quc app shell, health check and Cloudflare deploy (#237)
ci / test (push) Successful in 45s
sync / sync (push) Successful in 8s
time/worker-run grep -rniE "quc" --include=*.md --include=*.json . -l | head; grep -rniE "tone|voice" README.md .cla

Co-authored-by: Time <time@users.noreply.teahub.xyz>
This commit was merged in pull request #237.
This commit is contained in:
time authored and teahubxyz committed 2026-10-22 08:40:28 +00:00
1 parent 2f112ef3c5
commit 7a805ce5ae
6 files changed
+187

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
// Run the Worker locally: `npm start` in quc/, then http://localhost:8787/
import { createServer } from "node:http";
import worker from "./src/worker.js";
createServer(async (q, s) => {
const r = await worker.fetch(new Request(`http://${q.headers.host}${q.url}`, { method: q.method }), { REV: "dev" });
s.writeHead(r.status, Object.fromEntries(r.headers));
s.end(Buffer.from(await r.arrayBuffer()));
}).listen(process.env.PORT || 8787);