-
H, I'm trying to build out an A/B Testing framework into our Eleventy site. I had setup a paired shortcode called
Our flags are driven by PostHog Experiments, which requires a call to their NodeJS SDK in order to retrieve the flag for a given user, this can also be achieved via a raw API call. The challenge was that the API call currently just runs on server load, given it's running at build-time. As such, I thought I'd explore the Edge Functions. Ideally, I'd be able to call something like:
but I get a lot of issues with Eleventy when trying to do this, even though I've moved the definition of
When running this, I get errors that the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
seems related to this I believe: #2585 |
Beta Was this translation helpful? Give feedback.
-
Did get this working by using |
Beta Was this translation helpful? Give feedback.
Did get this working by using
{% edge "liquid" %}
(even though my files arenjk
)