Eleventy Edge - Nothing being displayed between tags on Netlify but works when running netlify dev locally #2409
Unanswered
mark-reason
asked this question in
General
Replies: 1 comment 14 replies
-
So it works locally but not on Netlify servers, hmm. Which type of Netlify account are you using? https://www.netlify.com/pricing/ Can you share the code that writes the Also probably unrelated but just to eliminate variables here can you update to the latest canary? I think we’re up to (note for me, this was also posted to the netlify support forums https://answers.netlify.com/t/eleventy-edge-nothing-being-displayed-between-tags-on-netlify-but-works-when-running-netlify-dev-locally/60315) |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using the generated eleventy-edge function with an extra cookie added and the filter changed:
This is being used to decide whether a cookie banner is shown or not:
and this is my netlify.toml (there is another Netlify function in there that handles site search, this is working fine)
If I run netlify dev locally and the cookie I'm looking for doesn't exist then the cookie banner content will show. However when I deploy this to an actual Netlify server nothing shows at all. The function is running as I can see the console log in the Netlify edge function log.
Package versions:
"@11ty/eleventy": "^v2.0.0-canary.7"
"@netlify/functions": "^1.0.0"
Am I doing anything wrong here?
Cheers
Mark
Beta Was this translation helpful? Give feedback.
All reactions