This basic example receives webhooks and logs the payload. It will fetch service, Postgres, or Key Value store information from the RENDER API for certain webhook types.
If you haven't already, sign up for a Render account. Creating webhooks on Render requires a Professional plan or higher. You can view and upgrade your plan in the Render Dashboard.
-
Follow instructions to create a webhook with the URL from your service and
/webhook
path -
Follow instructions to create a Render API Key
-
Set
RENDER_WEBHOOK_SECRET
environment variable to the secret from the webhook created in step 2. SETRENDER_API_KEY
to the key created in step 3. -
Trigger a service deploy and watch the webhooks roll in.
Once you've created a project and installed dependencies with pnpm install
, start a development server:
pnpm run dev
pnpm run build