mirror of
https://github.com/multipleof4/KalBot.git
synced 2026-03-16 21:41:02 +00:00
Fix: Force dynamic rendering for Captcha API
This commit is contained in:
@@ -2,6 +2,9 @@ import svgCaptcha from 'svg-captcha';
|
||||
import { NextResponse } from 'next/server';
|
||||
import crypto from 'crypto';
|
||||
|
||||
// Prevent Next.js from evaluating this route at build time
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export async function GET() {
|
||||
const captcha = svgCaptcha.create({
|
||||
size: 5,
|
||||
|
||||
Reference in New Issue
Block a user