Comment out hCaptcha verification logic in contact API route.

This commit is contained in:
2025-06-29 21:18:36 +09:00
parent e6ca52e72d
commit 0e487b42fa

View File

@@ -12,14 +12,14 @@ export async function POST(req: NextRequest) {
try {
const body = await req.json()
const origin = req.headers.get('origin') || 'http://localhost:3000'
const captchaToken = body.captcha
if (!captchaToken) {
return NextResponse.json(
{success: false, error: 'Captcha is required'},
{status: 400}
)
}
// const captchaToken = body.captcha
//
// if (!captchaToken) {
// return NextResponse.json(
// {success: false, error: 'Captcha is required'},
// {status: 400}
// )
// }
// Step 1: Verify hCaptcha token
// const verifyResponse = await fetch('https://api.hcaptcha.com/siteverify', {