Build Plugins enable you to “plug in” to different [event stages](https://docs.netlify.com/configure-builds/build-plugins/create-plugins/#plug-into-events) in the build-deploy lifecycle, running custom automated tasks right at the time when they’re needed. This week, we’re excited to announce an expansion of those capabilities.

Until recently, Build Plugin event handlers were limited to the “build” portion of the lifecycle, ranging from just before the build command, with `onPreBuild`, to just before deploying site assets, with `onPostBuild`.

But many customers and plugin authors have wanted their plugins to access the site _after_ it’s gone live. Now, we have two events for that purpose:

-   `onSuccess` runs after a successful site deploy. This matches the timing of “Deploy succeeded” [notifications and webhooks](https://docs.netlify.com/site-deploys/notifications/).
-   `onEnd` runs at the very end of the build-deploy lifecycle, regardless of whether the deploy succeeded or failed.

Note that because the site has already been deployed live (or failed) by the time an `onSuccess` or `onEnd` event runs, plugins can’t use that event to fail the build/deploy. However, they _can_ report errors or failures back to the deploy summary to recommend changes for the next deploy.

Post-deploy event handlers open up a variety of powerful new plugin capabilities, including:

-   **Crawling live deploy URLs.** Algolia has been using a special preview version of `onSuccess` to generate site search indexes with their [Algolia Crawler plugin](https://github.com/algolia/algoliasearch-netlify#readme).
-   **Running performance audits.** Several plugins use services like [SpeedCurve](https://app.netlify.com/plugins/netlify-build-plugin-speedcurve/install), [PerfBeacon](https://app.netlify.com/plugins/netlify-build-plugin-perfbeacon/install), [PageWatch](https://app.netlify.com/plugins/netlify-plugin-pagewatch/install), [Dareboost](http://app.netlify.com/plugins/netlify-build-plugin-dareboost/install), and [DebugBear](https://app.netlify.com/plugins/netlify-build-plugin-debugbear/install) to generate Lighthouse scores and compare metrics between deploys.
-   **Sending timely deploy data.** The [submit sitemap plugin](https://app.netlify.com/plugins/netlify-plugin-submit-sitemap) uses `onSuccess` to send a fresh sitemap to search engines as soon as the deploy is live, and not a minute sooner.
-   **Testing Netlify Functions responses.** Functions aren’t available until they’re deployed, so post-deploy events now enable functions testing right in your build. We’re happy to send updates to the customers who requested this!
-   **Quicker access to Deploy Previews.** Some tests don’t need to fail the build. By moving them post-deploy, you can check your preview sooner, and let the tests keep running in the background.

## Try it yourself

You can take advantage of this new post-deploy functionality by installing one of the plugins mentioned above or another from the [plugins directory](https://app.netlify.com/plugins?_ga=2.167607294.1930832954.1611607523-314182322.1587015855).

Or you can make your own plugin! [Check out the docs to learn how.](https://docs.netlify.com/configure-builds/build-plugins/create-plugins/)

As you work with Netlify Build Plugins, we’d love to find out more about how you’re using them and what features you’d like to have in the future. (Perhaps an `onPreInstall` event handler?) We’re always happy to chat in the [Community Forums](https://community.netlify.com/).

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=Post-deploy Events Now Available to Build Plugins&url=https://www.netlify.com/blog/2021/01/28/post-deploy-events-now-available-to-build-plugins/)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2F2021%2F01%2F28%2Fpost-deploy-events-now-available-to-build-plugins%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/2021/01/28/post-deploy-events-now-available-to-build-plugins/)
-   [Bluesky](https://bsky.app/intent/compose?text=Post-deploy Events Now Available to Build Plugins+https://www.netlify.com/blog/2021/01/28/post-deploy-events-now-available-to-build-plugins/)

* * *

### Tags

-   [Build Plugins](/blog/tags/build-plugins/)

## Keep reading

![](/images/blog-fallback-thumbnail.svg)

Tools & Services January 25, 2021

[

### Top 10 Netlify Build Plugins - 2021 Update

](/blog/2021/01/25/top-10-netlify-build-plugins-2021-update/)

-   ![Profile picture of Melanie Crissey](/_astro/ca2e7ff6f97a809119f3c1b9bf99a437eab6b3c4-956x956_WHlf.webp)
    
    Melanie Crissey
    

![](/images/blog-fallback-thumbnail.svg)

News & Announcements May 27, 2020

[

### Netlify Build Plugins Are Here!

](/blog/2020/05/27/netlify-build-plugins-are-here/)

-   ![Profile picture of Tara Z. Manicsic](/_astro/2ac74d0595066130d59f8c97e61332017cdbcb94-1000x921_ZyTafG.webp)
    
    Tara Z. Manicsic
    

## Recent posts

News & Announcements June 25, 2026

[

### Netlify Functions, designed for Agent Experience

](/blog/netlify-functions-designed-for-agent-experience)

-   ![Profile picture of Eduardo Bouças](/_astro/52958f21e8450baf6d8e60302341a984e220c0cd-512x512_13VDlu.webp)
    
    Eduardo Bouças
    

News & Announcements June 24, 2026

[

### How we measure Netlify’s Agent Experience

](/blog/how-we-measure-netlify-agent-experience)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

Guides & Tutorials May 15, 2026

[

### How to build a real-time AI chatbot in minutes with Netlify Agent Runners (no backend)

](/blog/how-to-build-a-real-time-ai-chatbot-in-minutes-with-netlify-agent-runners-no-backend)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)