fix
This commit is contained in:
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user