# Redeploy/Rebuild webhook on Heroku?

**URL:** <https://community.prismic.io/t/redeploy-rebuild-webhook-on-heroku/6995>\
**Category:** Developing with Prismic\
**Created:** [September 13, 2021, 6:16pm UTC](https://community.prismic.io/t/redeploy-rebuild-webhook-on-heroku/6995 "2021-09-13T18:16:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![technical1](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@technical1](https://community.prismic.io/u/technical1)\
**Post date:** [September 13, 2021, 6:16pm UTC](https://community.prismic.io/t/redeploy-rebuild-webhook-on-heroku/6995/1 "2021-09-13T18:16:30Z")

</div>

Does anyone else use Heroku to host a static site? I have their usual Git integration set up, so it will automatically rebuild when I push code changes, but I would like it to also rebuild the app with the existing code when I publish content changes in Prismic.

Does anyone know how to do with with Heroku?

---

<div class="post-metadata">

**Author:** ![technical1](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@technical1](https://community.prismic.io/u/technical1)\
**Post date:** [September 14, 2021, 6:00pm UTC](https://community.prismic.io/t/redeploy-rebuild-webhook-on-heroku/6995/2 "2021-09-14T18:00:32Z")

</div>

Heroku's platform API doesn't have an officially-documented endpoint for this. I gave up and put my app on Digital Ocean App Platform instead.  
And now I'm having problems with _that!_ ...so I'll make a new thread.

---

<div class="post-metadata">

**Author:** ![samlittlefair](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/samlittlefair/32/696_2.png) [@samlittlefair](https://community.prismic.io/u/samlittlefair)\
**Post date:** [September 15, 2021, 9:41am UTC](https://community.prismic.io/t/redeploy-rebuild-webhook-on-heroku/6995/4 "2021-09-15T09:41:43Z")

</div>

Hey @technical1 ,

It looks like you don't need support with this anymore, so I'm going to close this thread, but let me know if you change your mind and you do want to keep going with Heroku. You can just flag the thread to re-open it.

Sam

---

<div class="post-metadata">

**Author:** ![samlittlefair](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/samlittlefair/32/696_2.png) [@samlittlefair](https://community.prismic.io/u/samlittlefair)\
**Post date:** [September 15, 2021, 9:41am UTC](https://community.prismic.io/t/redeploy-rebuild-webhook-on-heroku/6995/5 "2021-09-15T09:41:47Z")

</div>

closed on September 15, 2021, 9:41am UTC, flag & select 'Something Else' to reopen.



---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 3:26pm UTC](https://community.prismic.io/t/redeploy-rebuild-webhook-on-heroku/6995/6 "2021-12-09T15:26:19Z")

</div>

Opened on December 9, 2021, 3:26pm UTC



---

<div class="post-metadata">

**Author:** ![djwasserman](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/djwasserman/32/3705_2.png) [@djwasserman](https://community.prismic.io/u/djwasserman)\
**Post date:** [January 20, 2022, 12:42pm UTC](https://community.prismic.io/t/redeploy-rebuild-webhook-on-heroku/6995/7 "2022-01-20T12:42:23Z")

</div>

There's actually a somewhat undocumented of this working with heroku. You need to use

[https://kolkrabbi.heroku.com/apps/](https://kolkrabbi.heroku.com/apps/)/github/push as the url in the webhook, add a token for an authorization header and use their custom `accept` header.

You can get all of this from the network inspector when you click the "deploy" button if you use the github integration.

FWIW, it would be great for Prismic to support a custom payload element in webhooks

---

<div class="post-metadata">

**Author:** ![samlittlefair](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/samlittlefair/32/696_2.png) [@samlittlefair](https://community.prismic.io/u/samlittlefair)\
**Post date:** [January 21, 2022, 1:44pm UTC](https://community.prismic.io/t/redeploy-rebuild-webhook-on-heroku/6995/8 "2022-01-21T13:44:26Z")

</div>

Hey @djwasserman,

Thanks for this info, and welcome to the Prismic community 🙂

We have a feature request here for webhook custom payloads: [Webhooks - inlcude payload - #8](https://community.prismic.io/t/webhooks-inlcude-payload/4500/8)

You can add a ❤ if you want to show your support for the idea.

Sam
