Skip to content

Commit 8424427

Browse files
fix formatting
1 parent 2a1a2d5 commit 8424427

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
@@ -400,34 +400,34 @@ let mf: Miniflare | null;
400400
let remoteProxySessionDetails: Awaited<ReturnType<typeof experimental_maybeStartOrUpdateRemoteProxySession>> | null = null;
401401

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

Comments
 (0)