Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: wrong url

Marc Seitzd4246ede7158
diff --git a/lib/webhook/send-webhooks.ts b/lib/webhook/send-webhooks.ts
index 4723ad29..eb36b626 100644
--- a/lib/webhook/send-webhooks.ts
+++ b/lib/webhook/send-webhooks.ts
@@ -39,7 +39,7 @@ const publishWebhookEventToQStash = async ({
}) => {
// TODO: add proper domain like app.papermark.dev in dev
const callbackUrl = new URL(
- `https://app.papermark.dev/api/webhooks/callback`,
+ `${process.env.NEXT_PUBLIC_BASE_URL}/api/webhooks/callback`,
);
callbackUrl.searchParams.append("webhookId", webhook.pId);
callbackUrl.searchParams.append("eventId", payload.id);