This commit is contained in:
Joseph J Helfenbein
2025-01-25 03:41:37 -05:00
parent 5261096bba
commit 21f5a83edf

View File

@@ -13,6 +13,10 @@ async function connectDB() {
const CLERK_WEBHOOK_SECRET = process.env.CLERK_WEBHOOK_SECRET;
export async function POST(req) {
console.log('Received request:', req);
if (!CLERK_WEBHOOK_SECRET) {
console.error('CLERK_WEBHOOK_SECRET is missing');
return NextResponse.json(
@@ -21,9 +25,6 @@ if (!CLERK_WEBHOOK_SECRET) {
);
}
export async function POST(req) {
console.log('Received request:', req);
if (req.method !== 'POST') {
return NextResponse.json(
{ message: 'Method Not Allowed' },