You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add `WRANGLER_CACHE_DIR` environment variable and smart cache directory detection
7
+
8
+
Wrangler now intelligently detects where to store cache files:
9
+
10
+
1. Use `WRANGLER_CACHE_DIR` env var if set
11
+
2. Use existing cache directory if found (`node_modules/.cache/wrangler` or `.wrangler/cache`)
12
+
3. Create cache in `node_modules/.cache/wrangler` if `node_modules` exists
13
+
4. Otherwise use `.wrangler/cache`
14
+
15
+
This improves compatibility with Yarn PnP, pnpm, and other package managers that don't use traditional `node_modules` directories, without requiring any configuration.
fix: exclude `.wrangler` directory from Pages uploads
6
+
7
+
The `.wrangler` directory contains local cache and state files that should never be deployed. This aligns Pages upload behavior with Workers Assets, which already excludes `.wrangler` via `.assetsignore`.
Add `MINIFLARE_CACHE_DIR` environment variable and smart cache directory detection
6
+
7
+
Miniflare now intelligently detects where to store its cf.json cache file:
8
+
9
+
1. Use `MINIFLARE_CACHE_DIR` env var if set
10
+
2. Use existing cache directory if found (`node_modules/.mf` or `.wrangler/cache`)
11
+
3. Create cache in `node_modules/.mf` if `node_modules` exists
12
+
4. Otherwise use `.wrangler/cache`
13
+
14
+
This improves compatibility with Yarn PnP, pnpm, and other package managers that don't use traditional `node_modules` directories, without requiring any configuration.
0 commit comments