Add Language/Multilingual endpoint in webhook

I have an English and a French website running on 2 separate URLs, but using the same prismic repo.

If someone make a change to the french content a webhook is sent to Netlify to trigger a build.

the problem is there is nothing to tell me that the French language document has been updated while the English one hasn't. Therefore it triggers a build of both the English and French sits.

My proposal is prismic add in a lang tag to the webhook to tell the build URL which content language has been changed...

i.e.
{
"type": "api-update",
"masterRef": "Xs6a5hEAAArQI7NM",
"releases": {},
"masks": {},
"tags": {},
"langs: {
"fr-fr"
},
"experiments": {},
"domain": "bidlogix-multipage",
"apiUrl": "https://bidlogix-multipage.prismic.io/api",
"secret": null
}

3 Likes

Hey Team,

This is a really interesting use case and a nice idea.

I’m tagging the @features-team so that we can discuss this.

If/When there are any updates on this topic, then we’ll update you here.

Thanks.

This is being tracked as an open feature request.

If you have another use-case for this feature, you can 'Flag' this topic to reopen. Please use the :heart: button to show your support for the feature and check out our Feature Request Guidelines.