@@ -400,34 +400,34 @@ let mf: Miniflare | null;
400400let remoteProxySessionDetails: Awaited <ReturnType <typeof experimental_maybeStartOrUpdateRemoteProxySession >> | null = null ;
401401
402402async function startOrUpdateDevSession() {
403- remoteProxySessionDetails = await experimental_maybeStartOrUpdateRemoteProxySession ({
404- bindings: {
405- MY_KV: {
406- type: ' kv_namespace' ,
407- id: ' kv-id' ,
408- experimental_remote: true ,
409- }
410- }
411- },
412- remoteProxySessionDetails
413- );
414-
415- const miniflareOptions: MiniflareOptions = {
416- scriptPath: " ./worker.js" ,
417- kvNamespaces: {
418- MY_KV: {
419- id: " kv-id" ,
420- remoteProxyConnectionString:
421- remoteProxySessionDetails ?.session .remoteProxyConnectionString ,
422- },
423- },
424- };
425-
426- if (! mf ) {
427- mf = new Miniflare (miniflareOptions );
428- } else {
429- mf .setOptions (miniflareOptions );
430- }
403+ remoteProxySessionDetails = await experimental_maybeStartOrUpdateRemoteProxySession ({
404+ bindings: {
405+ MY_KV: {
406+ type: ' kv_namespace' ,
407+ id: ' kv-id' ,
408+ experimental_remote: true ,
409+ }
410+ }
411+ },
412+ remoteProxySessionDetails
413+ );
414+
415+ const miniflareOptions: MiniflareOptions = {
416+ scriptPath: " ./worker.js" ,
417+ kvNamespaces: {
418+ MY_KV: {
419+ id: " kv-id" ,
420+ remoteProxyConnectionString:
421+ remoteProxySessionDetails ?.session .remoteProxyConnectionString ,
422+ },
423+ },
424+ };
425+
426+ if (! mf ) {
427+ mf = new Miniflare (miniflareOptions );
428+ } else {
429+ mf .setOptions (miniflareOptions );
430+ }
431431}
432432
433433// ... tool logic that invokes `startOrUpdateDevSession()` ...
0 commit comments