@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 9 lines 290 Bytes
Raw
1 "use server";
2
3 import { redirect } from "next/navigation";
4
5 export async function submitName(form: FormData) {
6 const value = form.get("name");
7 const name = typeof value === "string" ? value.trim().slice(0, 64) : "";
8 redirect(`/?submitted=${encodeURIComponent(name || "visitor")}`);
9 }