Add Turnstile protection to user actions
This commit is contained in:
@@ -17,6 +17,7 @@ import { siteConfig } from "@/lib/site";
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
const FALLBACK_DESCRIPTION = "Kennenlernen & Termine vereinbaren.";
|
||||
const turnstileSiteKey = process.env.TURNSTILE_SITE_KEY ?? "";
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const [booking, seoSettings] = await Promise.all([getBookingGlobal(), getSEOSettingsGlobal()]);
|
||||
@@ -122,6 +123,7 @@ export default async function TerminBuchenPage() {
|
||||
/>
|
||||
<div className="mt-10">
|
||||
<ContactForm
|
||||
siteKey={turnstileSiteKey}
|
||||
subjectPrefix="Terminanfrage über anouma.org"
|
||||
type="appointment"
|
||||
submitLabel="Terminanfrage senden"
|
||||
|
||||
Reference in New Issue
Block a user