The best way to control Claude Code, Codex and more from any computer or phone

main
ts 13 lines 277 Bytes
Raw
1 interface Env {
2 ASSETS: Fetcher;
3 }
4
5 export default {
6 fetch(request: Request, env: Env) {
7 if (new URL(request.url).pathname === "/api/log") {
8 console.log("vite-tail-marker");
9 return new Response("logged");
10 }
11 return env.ASSETS.fetch(request);
12 },
13 };