cloudflare / cloudflare/cloudflare-docs
Functions example for "A/B testing with middleware" appears untested and wrong
Open
content:edit
documentation
product:pages
stale
- Dominant language
- MDX
- Stars
- 5.2k
- Forks
- 16.7k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 337
Description
### Existing documentation URL(s)
https://developers.cloudflare.com/pages/functions/examples/ab-testing/
### What changes are you suggesting?
On the line `let cookie = request.headers.get("cookie");` the `request` variable seems to come from nowhere — I don't know how this could run.
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.