Files
myeasycms-v2/packages/database-webhooks
Giancarlo Buomprisco 39fc9497db Update dependencies across multiple packages (#226)
- Bump versions for `@hookform/resolvers`, `@tanstack/react-query`, `lucide-react`, `tailwindcss`, and `@types/node` to their latest compatible versions.
- Update `babel-plugin-react-compiler` to a newer beta version.
- Adjust `@supabase/supabase-js` and `@stripe/react-stripe-js` to their latest versions.
- Increment `sonner` and `tailwind-merge` versions for improved functionality.
- Update `@react-email/components` to the latest version for email templates.

This update ensures compatibility with the latest features and fixes across the codebase.
2025-04-02 23:54:34 +08:00
..
2025-02-07 11:38:29 +08:00
2025-02-07 11:38:29 +08:00
2024-03-30 14:51:16 +08:00

Database Webhooks - @kit/database-webhooks

This package is responsible for handling webhooks from database changes.

For example:

  1. when an account is deleted, we handle the cleanup of all related data in the third-party services.
  2. when a user is invited, we send an email to the user.
  3. when an account member is added, we update the subscription in the third-party services

The default sender provider is directly from the Postgres database.

WEBHOOK_SENDER_PROVIDER=postgres

Should you add a middleware to the webhook sender provider, you can do so by adding the following to the WEBHOOK_SENDER_PROVIDER environment variable.

WEBHOOK_SENDER_PROVIDER=svix

For example, you can add [https://docs.svix.com/quickstart]](Swix) as a webhook sender provider that receives webhooks from the database changes and forwards them to your application.

Svix is not implemented yet.