Skip to content

Commit b59ed26

Browse files
remove BETA label from Workers+Assets templates and hide Pages templates
1 parent a24cf19 commit b59ed26

File tree

14 files changed

+39
-15
lines changed

14 files changed

+39
-15
lines changed

.changeset/clever-squids-unite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-cloudflare": patch
3+
---
4+
5+
remove BETA label from Workers+Assets templates and hide Pages templates

packages/create-cloudflare/src/helpers/args.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ export const cliDefinition: ArgumentsDefinition = {
166166
description: `Whether the application should be deployed to Pages or Workers. This is only applicable for Frameworks templates that support both Pages and Workers.`,
167167
values: [
168168
{
169-
name: "pages",
169+
name: "workers",
170170
description:
171-
"Create a web application that can be deployed to Pages.",
171+
"Create a web application that can be deployed to Workers.",
172172
},
173173
{
174-
name: "workers",
174+
name: "pages",
175175
description:
176-
"Create a web application that can be deployed to Workers (BETA).",
176+
"Create a web application that can be deployed to Pages.",
177177
},
178178
],
179179
requiresArg: true,

packages/create-cloudflare/src/templates.ts

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -444,17 +444,25 @@ export const createContext = async (
444444
label: "platform",
445445
question: "Select your deployment platform",
446446
options: [
447-
{
448-
label: "Workers with Assets (BETA)",
449-
value: "workers",
450-
description:
451-
"Take advantage of the full Developer Platform, including R2, Queues, Durable Objects and more.",
452-
},
453-
{
454-
label: "Pages",
455-
value: "pages",
456-
description: "Great for simple websites and applications.",
457-
},
447+
...(frameworkConfig.platformVariants.workers.hidden
448+
? []
449+
: [
450+
{
451+
label: "Workers with Assets",
452+
value: "workers",
453+
description:
454+
"Take advantage of the full Developer Platform, including R2, Queues, Durable Objects and more.",
455+
},
456+
]),
457+
...(frameworkConfig.platformVariants.pages.hidden
458+
? []
459+
: [
460+
{
461+
label: "Pages",
462+
value: "pages",
463+
description: "Great for simple websites and applications.",
464+
},
465+
]),
458466
backOption,
459467
],
460468
defaultValue: "workers",

packages/create-cloudflare/templates/angular/pages/c3.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ const config: TemplateConfig = {
9595
frameworkCli: "@angular/create",
9696
displayName: "Angular",
9797
platform: "pages",
98+
hidden: true,
9899
copyFiles: {
99100
path: "./templates",
100101
},

packages/create-cloudflare/templates/astro/pages/c3.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ const config: TemplateConfig = {
6363
id: "astro",
6464
frameworkCli: "create-astro",
6565
platform: "pages",
66+
hidden: true,
6667
displayName: "Astro",
6768
path: "templates/astro/pages",
6869
copyFiles: {

packages/create-cloudflare/templates/docusaurus/pages/c3.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const config: TemplateConfig = {
1414
id: "docusaurus",
1515
frameworkCli: "create-docusaurus",
1616
platform: "pages",
17+
hidden: true,
1718
displayName: "Docusaurus",
1819
path: "templates/docusaurus/pages",
1920
generate,

packages/create-cloudflare/templates/gatsby/pages/c3.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const config: TemplateConfig = {
3434
id: "gatsby",
3535
frameworkCli: "gatsby",
3636
platform: "pages",
37+
hidden: true,
3738
displayName: "Gatsby",
3839
path: "templates/gatsby/pages",
3940
generate,

packages/create-cloudflare/templates/hono/pages/c3.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const config: TemplateConfig = {
2929
},
3030
path: "templates/hono/pages",
3131
platform: "pages",
32+
hidden: true,
3233
generate,
3334
transformPackageJson: async () => ({
3435
scripts: {

packages/create-cloudflare/templates/nuxt/pages/c3.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ const config: TemplateConfig = {
125125
id: "nuxt",
126126
frameworkCli: "nuxi",
127127
platform: "pages",
128+
hidden: true,
128129
displayName: "Nuxt",
129130
copyFiles: {
130131
path: "./templates",

packages/create-cloudflare/templates/qwik/pages/c3.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ const config: TemplateConfig = {
129129
frameworkCli: "create-qwik",
130130
displayName: "Qwik",
131131
platform: "pages",
132+
hidden: true,
132133
copyFiles: {
133134
path: "./templates",
134135
},

0 commit comments

Comments
 (0)