@@ -107,7 +107,7 @@ export function getCacheAssets(opts: BuildOptions): CacheAsset[] {
107107type PopulateCacheOptions = {
108108 target : WranglerTarget ;
109109 environment ?: string ;
110- configPath ?: string ;
110+ wranglerConfigPath ?: string ;
111111 cacheChunkSize ?: number ;
112112} ;
113113
@@ -148,7 +148,7 @@ async function populateR2IncrementalCache(
148148 ] ,
149149 {
150150 target : populateCacheOptions . target ,
151- configPath : populateCacheOptions . configPath ,
151+ configPath : populateCacheOptions . wranglerConfigPath ,
152152 // R2 does not support the environment flag and results in the following error:
153153 // Incorrect type for the 'cacheExpiry' field on 'HttpMetadata': the provided value is not of type 'date'.
154154 environment : undefined ,
@@ -200,7 +200,7 @@ async function populateKVIncrementalCache(
200200 runWrangler ( options , [ "kv bulk put" , quoteShellMeta ( chunkPath ) , `--binding ${ KV_CACHE_BINDING_NAME } ` ] , {
201201 target : populateCacheOptions . target ,
202202 environment : populateCacheOptions . environment ,
203- configPath : populateCacheOptions . configPath ,
203+ configPath : populateCacheOptions . wranglerConfigPath ,
204204 logging : "error" ,
205205 } ) ;
206206
@@ -232,7 +232,7 @@ function populateD1TagCache(
232232 {
233233 target : populateCacheOptions . target ,
234234 environment : populateCacheOptions . environment ,
235- configPath : populateCacheOptions . configPath ,
235+ configPath : populateCacheOptions . wranglerConfigPath ,
236236 logging : "error" ,
237237 }
238238 ) ;
@@ -313,7 +313,7 @@ async function populateCacheCommand(
313313 await populateCache ( options , config , wranglerConfig , {
314314 target,
315315 environment : args . env ,
316- configPath : args . configPath ,
316+ wranglerConfigPath : args . wranglerConfigPath ,
317317 cacheChunkSize : args . cacheChunkSize ,
318318 } ) ;
319319}
0 commit comments