Use `OPEN_NEXT_CLOUDFLARE` from Cloudflare open-next adapter
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.9k
- Forks
- 6.5k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 29
Description
The open-next adapter should introduce an OPEN_NEXT_CLOUDFLARE environment variable that the site should be used to detect when it is targeting Cloudflare as its deploying platform.
Currently this type of detection is done in less ideal ways in a few different places:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the detection logic in packages/rehype-shiki/src/index.mjs, apps/site/next.config.mjs, and apps/site/package.json, then inspect how the open-next adapter exposes environment variables. Replace the existing Cloudflare checks with the adapter-provided variable and verify that the site still detects Cloudflare correctly in its deployment configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs, typescript
- Domain
- cloud, devops
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100