Skip to content

[docs-infra] Migrate deploy-succeeded to event-triggered function - #5739

Merged
brijeshb42 merged 1 commit into
mui:masterfrom
brijeshb42:netlify-migrate-deploy-event-function
Sep 18, 2026
Merged

brijeshb42 merged 1 commit into
mui:masterfrom
brijeshb42:netlify-migrate-deploy-event-function

Conversation

@brijeshb42

@brijeshb42 brijeshb42 commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Migrates netlify/functions/deploy-succeeded.js to Netlify's event-triggered functions API (netlify/functions/on-deploy.mts). Netlify verifies these invocations natively (JWS), so no custom auth needed.

Old review_url/deploy_ssl_url fields are gone from the new payload. PR number and preview URL are now parsed from deploy.permalinkUrl (deploy-preview-<n>--<site> hostname).

Same migration verified live on mui/mui-x#23634 — confirmed the CircleCI e2e-website pipeline triggers correctly. This PR mirrors that change for this repo; still needs its own live verification here.

Related

Same migration applied across other public repos with this webhook:

@brijeshb42 brijeshb42 added the scope: docs-infra Involves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305). label Sep 17, 2026
@pkg-pr-new

pkg-pr-new Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

commit: 10e16d3

@brijeshb42
brijeshb42 marked this pull request as ready for review September 17, 2026 17:42
@code-infra-dashboard

code-infra-dashboard Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

Total duration: 1,016.18 ms -4.97 ms(-0.5%) | Renders: 76 (+0) | Paint: 1,708.83 ms -16.45 ms(-1.0%)

No significant changes — details


Check out the code infra dashboard for more information about this PR.

@brijeshb42
brijeshb42 requested a review from a team September 17, 2026 17:42
@netlify

netlify Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 10e16d3
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6aad0bb3050bf500077c097b
😎 Deploy Preview https://deploy-preview-5739--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@brijeshb42
brijeshb42 enabled auto-merge (squash) September 18, 2026 09:53
Netlify's legacy webhook payload for this function (review_url,
deploy_ssl_url) is superseded by the typed event-triggered function
API. The new handler uses the documented Deploy event shape and
Netlify's native JWS verification of event invocations, removing the
need for any custom auth check on our end.

review_url is gone from the new payload; sslUrl is the site's shared
production domain (not deploy-specific), so the PR number and preview
URL are now parsed from permalinkUrl instead, which is per-deploy and
hostnamed deploy-preview-<n>--<site> for PR previews.

Verified against mui/mui-x (mui/mui-x#23634),
where this exact migration was tested live and confirmed to trigger
the e2e-website CircleCI pipeline correctly.
@brijeshb42
brijeshb42 force-pushed the netlify-migrate-deploy-event-function branch from 096834c to 10e16d3 Compare September 18, 2026 10:00
@github-actions github-actions Bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Sep 18, 2026
@brijeshb42
brijeshb42 merged commit 68e4410 into mui:master Sep 18, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: docs-infra Involves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants