© 2026 Hedgehog Software, LLC
export default async function Page(formData: FormData) { try { const sql = postgres(process.env.DATABASE_URL ?? "", { ssl: 'require' }); await sql`CREATE TABLE IF NOT EXISTS comments (comment TEXT)`; const comment = String(formData.get("data")); // Convert comment to a string await sql`INSERT INTO comments (comment) VALUES (${comment})`; console.log("Comment added")} catch (error) { console.log(error)}}