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 { try {
const body = await req.json() const body = await req.json()
const origin = req.headers.get('origin') || 'http://localhost:3000' const origin = req.headers.get('origin') || 'http://localhost:3000'
const captchaToken = body.captcha // const captchaToken = body.captcha
//
if (!captchaToken) { // if (!captchaToken) {
return NextResponse.json( // return NextResponse.json(
{success: false, error: 'Captcha is required'}, // {success: false, error: 'Captcha is required'},
{status: 400} // {status: 400}
) // )
} // }
// Step 1: Verify hCaptcha token // Step 1: Verify hCaptcha token
// const verifyResponse = await fetch('https://api.hcaptcha.com/siteverify', { // const verifyResponse = await fetch('https://api.hcaptcha.com/siteverify', {