Skip to content

Add WRANGLER_CACHE_DIR and MINIFLARE_CACHE_DIR environment variables#28364

Merged
MattieTK merged 4 commits intoproductionfrom
devin/1771250918-add-wrangler-cache-dir-env-vars
Apr 20, 2026
Merged

Add WRANGLER_CACHE_DIR and MINIFLARE_CACHE_DIR environment variables#28364
MattieTK merged 4 commits 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

@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

github-actions Bot commented Feb 16, 2026

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, @cloudflare/product-owners

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 Feb 16, 2026

@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
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 2, 2026

Hey there, we've closed out this pull request because it's been stale for a while and there's been no additional action on it. If these changes are still relevant, open a new pull request (or flag to us in a GitHub issue).

@github-actions
Copy link
Copy Markdown
Contributor

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

@petebacondarwin
Copy link
Copy Markdown
Contributor Author

Not stale - waiting for review

Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
@petebacondarwin petebacondarwin force-pushed the devin/1771250918-add-wrangler-cache-dir-env-vars branch from cc07f3a to fb934ee Compare April 17, 2026 22:04
devin-ai-integration[bot]

This comment was marked as resolved.

@devin-ai-integration
Copy link
Copy Markdown
Contributor

❌ Cannot revive Devin session - the session is too old. Please start a new session instead.

1 similar comment
@devin-ai-integration
Copy link
Copy Markdown
Contributor

❌ Cannot revive Devin session - the session is too old. Please start a new session instead.

@MattieTK MattieTK merged commit 1ea265e into production Apr 20, 2026
15 checks passed
@MattieTK MattieTK deleted the devin/1771250918-add-wrangler-cache-dir-env-vars branch April 20, 2026 18:29
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants