feat(examples): add webhook-driven SaaS template#168
Closed
fjalil7 wants to merge 8 commits into
Closed
Conversation
Next.js SaaS template that listens to Commet webhooks and reacts: provisions plan entitlements, sends a welcome email, notifies the team, and gates premium features on past-due. Includes a live /dashboard/events feed.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a webhook-driven SaaS example that demonstrates Commet subscription checkout, Better Auth customer creation, signed webhook handling, local billing state sync, and an events dashboard.
The example now points at published Commet packages instead of workspace packages so it can be tested like a real integrator app.
What changed
examples/webhookswith pricing, auth, checkout, dashboard, billing, and webhook event views./api/webhooks/commethandling backed by@commet/node@7.3.0.@commet/nextwebhook typing support used by the example branch.Validation
pnpm biome check --writegit diff --check origin/main...HEADpnpm buildpnpm typecheckpnpm --filter webhooks-example buildpnpm --filter webhooks-example typecheckNotes
origin/betadoes not exist in this repo, so this PR targetsmain. Manual Chrome QA was not run because it was not requested as part of the PR gate.