Skip to content

Commit 077c4d5

Browse files
authored
fix(create-cloudflare): skip create-vite Install and start now prompt (#12866)
1 parent 7b0d8f5 commit 077c4d5

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.changeset/ten-maps-judge.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"create-cloudflare": patch
3+
---
4+
5+
Fix React app creation flow skipping Cloudflare setup
6+
7+
Creating a React app with create-cloudflare no longer allows the Cloudflare setup step to be skipped by accepting create-vite's `Install and start now` prompt.

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ const { npm } = detectPackageManager();
1010
const generate = async (ctx: C3Context) => {
1111
const variant = await getVariant(ctx);
1212

13-
await runFrameworkGenerator(ctx, [ctx.project.name, "--template", variant]);
13+
await runFrameworkGenerator(ctx, [
14+
ctx.project.name,
15+
"--template",
16+
variant,
17+
"--no-immediate",
18+
]);
1419

1520
logRaw("");
1621
};

packages/create-cloudflare/templates/react/workers/c3.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const generate = async (ctx: C3Context) => {
2424
ctx.project.name,
2525
"--template",
2626
variant.value,
27+
"--no-immediate",
2728
]);
2829

2930
logRaw("");

0 commit comments

Comments
 (0)