Rich AR
Convex Community9mo ago
1 reply
Rich A

Stable URLs for Webhook Handlers in Preview?

I'm using httpActions for webhooks (e.g., Clerk) to centralize backend logic and logging in Convex. This is great for dev/prod, but Preview Deployments create a challenge: their dynamic URLs require manual webhook endpoint updates in services like Clerk for each new preview.

My questions:

Stable Preview Webhook URL: Is there a Convex-native way to get a stable URL for webhooks that routes to the current active preview deployment, without needing third-party tunnelers (e.g., ngrok)?

Logging Strategy: If I use a Next.js API route for a stable URL, this splits logs between Vercel and Convex. What are best practices for managing this or achieving more centralized logging in Convex for the entire webhook flow?

Looking for community insights, established patterns, or info on any planned features that could help with:
- Stable webhook ingress for dynamic preview environments.
- Better log consolidation if part of the webhook is handled externally.
Any advice on managing webhooks with preview deployments for a clean, observable setup would be fantastic. Thanks!
Was this page helpful?