mirror of
https://github.com/multipleof4/KalBot.git
synced 2026-03-17 14:01: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 { 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,
|
||||||
|
|||||||
Reference in New Issue
Block a user