import { useParams } from 'next/navigation';
export const runtime = 'nodejs';
export const dynamic = 'force-dynamic';
export function GET(request: Request) {
const { key } = useParams();
if (key !== process.env.INITIALIZATION_KEY) {
return new Response('Invalid key', { status: 403 });
}
return new Response(`Keys match!`);
}
import { useParams } from 'next/navigation';
export const runtime = 'nodejs';
export const dynamic = 'force-dynamic';
export function GET(request: Request) {
const { key } = useParams();
if (key !== process.env.INITIALIZATION_KEY) {
return new Response('Invalid key', { status: 403 });
}
return new Response(`Keys match!`);
}