Skip to content

Commit fb50d1a

Browse files
fix formatting
1 parent 35b8d0c commit fb50d1a

File tree

1 file changed

+28
-28
lines changed
  • src/content/docs/workers/development-testing

1 file changed

+28
-28
lines changed

src/content/docs/workers/development-testing/index.mdx

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -394,34 +394,34 @@ let mf: Miniflare | null;
394394
let remoteProxySessionDetails: Awaited<ReturnType<typeof experimental_maybeStartOrUpdateRemoteProxySession>> | null = null;
395395

396396
async 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

Comments
 (0)