Mail & Fixes
All checks were successful
Deploy NPM app / Deploy NPM (push) Successful in 52s

This commit is contained in:
Antoni Nuñez Romeu
2026-03-20 02:57:46 +01:00
parent b87443f0e5
commit 5b663be89f
3 changed files with 161 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ import { useState, useEffect, useRef } from "react";
import { motion } from "framer-motion";
import { z } from "zod";
import { Button } from "@/components/ui/button";
import { WEBHOOK_URL } from "@/data/event-data";
import { WEBHOOK_URL, WEBHOOK_SECRET } from "@/data/event-data";
import { CheckCircle, Loader2, AlertCircle, Search } from "lucide-react";
/**
@@ -135,6 +135,10 @@ const BookingSection = () => {
console.log("[Booking] Sending to:", WEBHOOK_URL);
const res = await fetch(WEBHOOK_URL, {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Webhook-Secret": WEBHOOK_SECRET,
},
body: JSON.stringify(result.data),
});
console.log("[Booking] Response status:", res.status);