This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import crypto from 'crypto' | |
const { INTEGRATION_SECRET, VERCEL_TEAM_ID, VERCEL_TOKEN } = process.env | |
function sha1(data: Buffer, secret: string): string { | |
return crypto.createHmac('sha1', secret).update(data).digest('hex') | |
} | |
export async function POST(request: Request) { | |
if (typeof INTEGRATION_SECRET != 'string') { |