chore: add default webhook token

This commit is contained in:
Hossein Mehrabi 2023-08-31 13:54:26 +03:30
parent 5bf3e07edf
commit dc6abaeccb
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
2 changed files with 4 additions and 2 deletions

2
.env
View File

@ -1,5 +1,5 @@
UNBODY_API_KEY=
UNBODY_LPE_PROJECT_ID=
UNBODY_PROJECT_ID=
SIMPLECAST_ACCESS_TOKEN=
REVALIDATE_WEBHOOK_TOKEN=
NEXT_PUBLIC_SITE_URL=https://press.logos.co

View File

@ -3,7 +3,9 @@ import type { NextApiRequest, NextApiResponse } from 'next'
import path from 'path'
const WEBHOOK_DATA_PATH = path.join(__dirname, '../../webhook_data.json')
const TOKEN = process.env.REVALIDATE_WEBHOOK_TOKEN || ''
const TOKEN =
process.env.REVALIDATE_WEBHOOK_TOKEN ||
'f8f1023d7d9d320af73b5ff49a8430dda97e9b666318c7a76b60c13d7a2e152b'
export type WebhookData = {
lastUpdate: number