We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 230143a commit 2c7806fCopy full SHA for 2c7806f
apps/sim/app/api/webhooks/poll/gmail/route.ts
@@ -40,10 +40,9 @@ export async function GET(request: NextRequest) {
40
41
try {
42
const authHeader = request.headers.get('authorization')
43
- const webhookSecret = process.env.WEBHOOK_POLLING_SECRET
+ const webhookSecret = process.env.CRON_SECRET || process.env.WEBHOOK_POLLING_SECRET
44
45
if (!webhookSecret) {
46
- logger.warn(`WEBHOOK_POLLING_SECRET is not set`)
47
return new NextResponse('Configuration error: Webhook secret is not set', { status: 500 })
48
}
49
0 commit comments