cloudflare / cloudflare/cloudflare-docs

Functions example for "A/B testing with middleware" appears untested and wrong

Open
#28,447 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.