Skip to content

Commit 29bda2e

Browse files
authored
fix: workers for platforms upload (#839)
1 parent 468efec commit 29bda2e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

worker-publisher-template/scripts/deploy-wfp.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ export async function deploySnippetToNamespace(opts: {
4848
main_module: moduleFileName,
4949
bindings,
5050
},
51-
files: {
52-
[moduleFileName]: await toFile(Buffer.from(code), moduleFileName, {
51+
files: [
52+
await toFile(Buffer.from(code), moduleFileName, {
5353
type: "application/javascript+module",
5454
}),
55-
},
55+
],
5656
},
5757
);
5858

worker-publisher-template/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ async function deploySnippetToNamespace(
4747
main_module: moduleFileName,
4848
bindings,
4949
},
50-
files: {
51-
[moduleFileName]: new File([code], moduleFileName, {
50+
files: [
51+
new File([code], moduleFileName, {
5252
type: "application/javascript+module",
5353
}),
54-
},
54+
],
5555
},
5656
);
5757

worker-publisher-template/wrangler.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"binding": "DISPATCHER",
1010
"namespace": "my-dispatch-namespace",
11-
"experimental_remote": true
11+
"remote": true
1212
}
1313
],
1414
"observability": {

0 commit comments

Comments
 (0)