Rich A
Rich A
CCConvex Community
Created by Rich A on 5/11/2025 in #support-community
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!
2 replies
CCConvex Community
Created by Rich A on 5/2/2025 in #support-community
Advice on Webhooks and Polar
I need some advice. Polar claims to use the Standard Webhooks approach for validating webhook signatures as described here @https://docs.polar.sh/integrate/webhooks/delivery . However, I cannot find any good example or guidance on how to do this within Convex's standard http.ts file for managing http routes and responding to webhooks after the signature has been validated. In my http.ts has Clerk using svix, which is pretty straghtforward and works for both test and production environments. But how would I do this for Polar (or any other party that may send webhooks to my app using the Standard Webhooks approach as described in @https://www.standardwebhooks.com/ ? Does anyone have any good examples of this working? FYI, I have tried to use the https://www.convex.dev/components/polar but I had issues getting that to work as well. I would feel more confident if I knew that I could interact wth Polar directly and securely. Once I have that, I will take a another run at the Convex Polar Component I've tried lots of different things and looked for answers, so any steer would be appreciated.
7 replies