@@ -394,34 +394,34 @@ let mf: Miniflare | null;
394394let remoteProxySessionDetails: Awaited <ReturnType <typeof experimental_maybeStartOrUpdateRemoteProxySession >> | null = null ;
395395
396396async function startOrUpdateDevSession() {
397- remoteProxySessionDetails = await experimental_maybeStartOrUpdateRemoteProxySession ({
398- bindings: {
399- MY_KV: {
400- type: ' kv_namespace' ,
401- id: ' kv-id' ,
402- experimental_remote: true ,
403- }
404- }
405- },
406- remoteProxySessionDetails
407- );
408-
409- const miniflareOptions: MiniflareOptions = {
410- scriptPath: " ./worker.js" ,
411- kvNamespaces: {
412- MY_KV: {
413- id: " kv-id" ,
414- remoteProxyConnectionString:
415- remoteProxySessionDetails ?.session .remoteProxyConnectionString ,
416- },
417- },
418- };
419-
420- if (! mf ) {
421- mf = new Miniflare (miniflareOptions );
422- } else {
423- mf .setOptions (miniflareOptions );
424- }
397+ remoteProxySessionDetails = await experimental_maybeStartOrUpdateRemoteProxySession ({
398+ bindings: {
399+ MY_KV: {
400+ type: ' kv_namespace' ,
401+ id: ' kv-id' ,
402+ experimental_remote: true ,
403+ }
404+ }
405+ },
406+ remoteProxySessionDetails
407+ );
408+
409+ const miniflareOptions: MiniflareOptions = {
410+ scriptPath: " ./worker.js" ,
411+ kvNamespaces: {
412+ MY_KV: {
413+ id: " kv-id" ,
414+ remoteProxyConnectionString:
415+ remoteProxySessionDetails ?.session .remoteProxyConnectionString ,
416+ },
417+ },
418+ };
419+
420+ if (! mf ) {
421+ mf = new Miniflare (miniflareOptions );
422+ } else {
423+ mf .setOptions (miniflareOptions );
424+ }
425425}
426426
427427// ... tool logic that invokes `startOrUpdateDevSession()` ...
0 commit comments