diff --git a/.changeset/breezy-cats-trade.md b/.changeset/breezy-cats-trade.md new file mode 100644 index 000000000000..7a37983186ff --- /dev/null +++ b/.changeset/breezy-cats-trade.md @@ -0,0 +1,8 @@ +--- +"create-cloudflare": patch +--- + +rename hello world templates with assets + +Worker + Assets -> SSR / full-stack app +Assets only -> Static site diff --git a/packages/create-cloudflare/e2e-tests/cli.test.ts b/packages/create-cloudflare/e2e-tests/cli.test.ts index 3095175d16cc..d68281d34c39 100644 --- a/packages/create-cloudflare/e2e-tests/cli.test.ts +++ b/packages/create-cloudflare/e2e-tests/cli.test.ts @@ -83,7 +83,7 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())( expect(project.path).toExist(); expect(output).toContain(`category Hello World example`); - expect(output).toContain(`type Worker + Assets`); + expect(output).toContain(`type SSR / full-stack app`); expect(output).toContain(`lang TypeScript`); expect(output).toContain(`no deploy`); }, @@ -177,7 +177,7 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())( ); expect(project.path).toExist(); - expect(output).toContain(`type Worker + Assets`); + expect(output).toContain(`type SSR / full-stack app`); expect(output).toContain(`lang TypeScript`); expect(output).toContain(`no deploy`); } finally { @@ -548,9 +548,9 @@ describe.skipIf(frameworkToTest || isQuarantineMode())("help text", () => { hello-world For processing requests, transforming responses, or API endpoints hello-world-assets-only - For static sites (including SPAs) or when using your own backend + For static sites or when using your own backend. Uses Workers Static Assets. hello-world-with-assets - For static sites with an API or server-side rendering (SSR) + For sites with a backend API, or server-side rendering (SSR). Uses Static Assets with a Worker. hello-world-durable-object For multiplayer apps using WebSockets, or when you need synchronization hello-world-durable-object-with-assets diff --git a/packages/create-cloudflare/templates/hello-world-assets-only/c3.ts b/packages/create-cloudflare/templates/hello-world-assets-only/c3.ts index bf44944bfabb..50c1f3661e41 100644 --- a/packages/create-cloudflare/templates/hello-world-assets-only/c3.ts +++ b/packages/create-cloudflare/templates/hello-world-assets-only/c3.ts @@ -4,9 +4,9 @@ const config: TemplateConfig = { configVersion: 1, id: "hello-world-assets-only", path: "templates/hello-world-assets-only", - displayName: "Assets only", + displayName: "Static site", description: - "For static sites (including SPAs) or when using your own backend", + "For static sites or when using your own backend. Uses Workers Static Assets.", platform: "workers", copyFiles: { path: "./templates", diff --git a/packages/create-cloudflare/templates/hello-world-with-assets/c3.ts b/packages/create-cloudflare/templates/hello-world-with-assets/c3.ts index 8e9af5159fa4..ffe12542727d 100644 --- a/packages/create-cloudflare/templates/hello-world-with-assets/c3.ts +++ b/packages/create-cloudflare/templates/hello-world-with-assets/c3.ts @@ -4,8 +4,9 @@ const config: TemplateConfig = { configVersion: 1, id: "hello-world-with-assets", path: "templates/hello-world-with-assets", - displayName: "Worker + Assets", - description: "For static sites with an API or server-side rendering (SSR)", + displayName: "SSR / full-stack app", + description: + "For sites with a backend API, or server-side rendering (SSR). Uses Static Assets with a Worker.", platform: "workers", copyFiles: { variants: {