Repository navigation
[docs-infra] Migrate deploy-succeeded to event-triggered function - #5739
Merged
brijeshb42 merged 1 commit intoSep 18, 2026
Merged
Conversation
commit: |
brijeshb42
marked this pull request as ready for review
September 17, 2026 17:42
brijeshb42
requested review from
atomiks,
flaviendelangle,
jjenzz and
michaldudak
as code owners
September 17, 2026 17:42
Bundle size
PerformanceTotal 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. |
✅ Deploy Preview for base-ui ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
This was referenced Sep 17, 2026
Janpot
approved these changes
Sep 18, 2026
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
force-pushed
the
netlify-migrate-deploy-event-function
branch
from
September 18, 2026 10:00
096834c to
10e16d3
Compare
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
Migrates
netlify/functions/deploy-succeeded.jsto 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_urlfields are gone from the new payload. PR number and preview URL are now parsed fromdeploy.permalinkUrl(deploy-preview-<n>--<site>hostname).Same migration verified live on mui/mui-x#23634 — confirmed the CircleCI
e2e-websitepipeline 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: