On Version Notebook Hook | Endpoint Services | Observable
ojs
ojs
ojs
Author
Tom Larkworthy
@tomlarkworthy
Tech Lead at Taktile. ex Firebase, Google. 🦋 larkworthy.bsky.social
Comments (4)
Fabian Iwand
Oct 22, 2021
The thumbnail daemon runs for every change though, not only publishing. Do you perform an additional check to see if the new revision is actually published? Also, what about custom thumbnails? I assume the webhook wouldn't work with those?
Tom Larkworthy
Oct 22, 2021
I assumed that too, but then I tested it and it seems to work anyway. Originally I did user agent sniffing but this seems simpler so long as it works.
Oct 22, 2021
Oh yeah your right though, it gets called on edit which includes publish but sometimes more.
Tom Larkworthy
Oct 22, 2021
I rename it to "on version" as it's easier to do the publish check downstream of this hook
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Public
Forum
Bluesky
YouTube
X
Observable
Sign up
Endpoint Services
Tom Larkworthy
7
Reply
Add comment
Subscribe to notifications
2
On Version Notebook Hook | Endpoint Services | Observable