-
I wanted to paste a long conditional twig statement in the URL like this (I added whitespace for readability): {% if event.sender.site.handle == "prod" %}
https://api.netlify.com/build_hooks/xxxxxx
{% elseif event.sender.site.handle == "en_CA" %}
https://api.netlify.com/build_hooks/yyyyyy
{% elseif event.sender.site.handle == "fr_CA" %}
https://api.netlify.com/build_hooks/zzzzzzz
{% endif %} My use case is a webhook that triggers a different Netlify build hook depending on the Craft site. I have a different Netlify app for each Craft site. I'm getting a SQL error of |
Beta Was this translation helpful? Give feedback.
Answered by
weotch
Sep 29, 2021
Replies: 1 comment
-
I created this PR for this change #60 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
weotch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I created this PR for this change #60