Skip to content

Add WRANGLER_CACHE_DIR and MINIFLARE_CACHE_DIR environment variables#28364

Open
petebacondarwin wants to merge 1 commit intoproductionfrom
devin/1771250918-add-wrangler-cache-dir-env-vars
Open

Add WRANGLER_CACHE_DIR and MINIFLARE_CACHE_DIR environment variables#28364
petebacondarwin wants to merge 1 commit intoproductionfrom
devin/1771250918-add-wrangler-cache-dir-env-vars

Conversation

@petebacondarwin
Copy link
Copy Markdown
Contributor

@petebacondarwin petebacondarwin commented Feb 16, 2026

Summary

Documents two new environment variables introduced in cloudflare/workers-sdk#12466:

  • WRANGLER_CACHE_DIR — overrides Wrangler's default cache location (node_modules/.cache/wrangler)
  • MINIFLARE_CACHE_DIR — overrides Miniflare's default cf.json cache location (node_modules/.mf)

Both are useful for environments without a traditional node_modules directory, such as Yarn PnP.

Things for reviewer to verify

  • Descriptions align with the implementation in workers-sdk#12466
  • Whether the example .env section at the bottom of the page should also include these new variables (currently omitted since they are niche/optional)
  • Timing: the source PR may not yet be merged

Link to Devin run | Requested by: @petebacondarwin

Documentation checklist


Open with Devin

Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
@devin-ai-integration
Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/workers/wrangler/ @cloudflare/wrangler, @irvinebroque, @cloudflare/pcx-technical-writing

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 3, 2026

Hey there, we've marked this pull request as stale because there's no recent activity on it. This label is helps us identify PRs that might need updates (or to be closed out by our team if no longer relevant).

@github-actions github-actions bot added the stale label Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product size/xs stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants