From acf3b64b4757325ffb9298bfd5ff3cf0b87bcb19 Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Wed, 11 Oct 2023 10:44:04 +0100 Subject: [PATCH] C3: fix incorrect service example in worker template toml files (#4152) --- .changeset/five-panthers-crash.md | 5 +++++ packages/create-cloudflare/templates/common/js/wrangler.toml | 2 +- packages/create-cloudflare/templates/common/ts/wrangler.toml | 2 +- .../create-cloudflare/templates/hello-world/js/wrangler.toml | 2 +- .../create-cloudflare/templates/hello-world/ts/wrangler.toml | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/five-panthers-crash.md diff --git a/.changeset/five-panthers-crash.md b/.changeset/five-panthers-crash.md new file mode 100644 index 000000000000..c44f6b73ba1c --- /dev/null +++ b/.changeset/five-panthers-crash.md @@ -0,0 +1,5 @@ +--- +"create-cloudflare": patch +--- + +fix incorrect service example in worker template toml files diff --git a/packages/create-cloudflare/templates/common/js/wrangler.toml b/packages/create-cloudflare/templates/common/js/wrangler.toml index e28e1e0e6336..c6054ff49609 100644 --- a/packages/create-cloudflare/templates/common/js/wrangler.toml +++ b/packages/create-cloudflare/templates/common/js/wrangler.toml @@ -35,7 +35,7 @@ compatibility_date = "" # Docs: https://developers.cloudflare.com/workers/platform/services # [[services]] # binding = "MY_SERVICE" -# service = "/api/*" +# service = "my-service" # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model. # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps. diff --git a/packages/create-cloudflare/templates/common/ts/wrangler.toml b/packages/create-cloudflare/templates/common/ts/wrangler.toml index 625c865953ea..5348d10b8a04 100644 --- a/packages/create-cloudflare/templates/common/ts/wrangler.toml +++ b/packages/create-cloudflare/templates/common/ts/wrangler.toml @@ -35,7 +35,7 @@ compatibility_date = "" # Docs: https://developers.cloudflare.com/workers/platform/services # [[services]] # binding = "MY_SERVICE" -# service = "/api/*" +# service = "my-service" # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model. # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps. diff --git a/packages/create-cloudflare/templates/hello-world/js/wrangler.toml b/packages/create-cloudflare/templates/hello-world/js/wrangler.toml index e28e1e0e6336..c6054ff49609 100644 --- a/packages/create-cloudflare/templates/hello-world/js/wrangler.toml +++ b/packages/create-cloudflare/templates/hello-world/js/wrangler.toml @@ -35,7 +35,7 @@ compatibility_date = "" # Docs: https://developers.cloudflare.com/workers/platform/services # [[services]] # binding = "MY_SERVICE" -# service = "/api/*" +# service = "my-service" # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model. # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps. diff --git a/packages/create-cloudflare/templates/hello-world/ts/wrangler.toml b/packages/create-cloudflare/templates/hello-world/ts/wrangler.toml index 625c865953ea..5348d10b8a04 100644 --- a/packages/create-cloudflare/templates/hello-world/ts/wrangler.toml +++ b/packages/create-cloudflare/templates/hello-world/ts/wrangler.toml @@ -35,7 +35,7 @@ compatibility_date = "" # Docs: https://developers.cloudflare.com/workers/platform/services # [[services]] # binding = "MY_SERVICE" -# service = "/api/*" +# service = "my-service" # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model. # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.