Improve event timeout with heartbeat_at

This commit is contained in:
Dominic Ferrando
2026-07-18 01:10:03 -04:00
parent c24002eaca
commit e4cb2da9cc
4 changed files with 15 additions and 6 deletions
+4 -1
View File
@@ -3,7 +3,10 @@ import { env } from "../util";
const DOMAIN = "dev.api.bladeandbrawn.com";
const PRINTFUL_WEBHOOK_URL = `http://${DOMAIN}/webhooks/printful?secret=${env.PRINTFUL_WEBHOOK_SECRET}`;
const PRINTFUL_WEBHOOK_URL = env.NODE_ENV === "development" ?
`http://${DOMAIN}/webhooks/printful?secret=${env.PRINTFUL_WEBHOOK_SECRET}` :
`https://${DOMAIN}/webhooks/printful?secret=${env.PRINTFUL_WEBHOOK_SECRET}`;
// http dosent work for webflow, so cant register properly for development env
const WEBFLOW_WEBHOOK_URL = `https://${DOMAIN}/webhooks/webflow`;
function printError(err: unknown): never {