Fix: Force dynamic rendering for Captcha API

This commit is contained in:
2026-03-14 00:18:47 -07:00
parent 751bc370b8
commit 49632b9ae6

View File

@@ -2,6 +2,9 @@ import svgCaptcha from 'svg-captcha';
import { NextResponse } from 'next/server'; import { NextResponse } from 'next/server';
import crypto from 'crypto'; import crypto from 'crypto';
// Prevent Next.js from evaluating this route at build time
export const dynamic = 'force-dynamic';
export async function GET() { export async function GET() {
const captcha = svgCaptcha.create({ const captcha = svgCaptcha.create({
size: 5, size: 5,