Skip to content

Commit aea23e8

Browse files
add workers help message in next steps box
1 parent 1ff445e commit aea23e8

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.changeset/honest-rice-roll.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-better-t-stack": patch
3+
---
4+
5+
add workers help message in neext steps box

apps/cli/src/helpers/project-generation/post-installation.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export function displayPostInstallInstructions(
2323
frontend,
2424
backend,
2525
dbSetup,
26+
webDeploy,
2627
} = config;
2728

2829
const isConvex = backend === "convex";
@@ -54,6 +55,8 @@ export function displayPostInstallInstructions(
5455
const starlightInstructions = addons?.includes("starlight")
5556
? getStarlightInstructions(runCmd)
5657
: "";
58+
const workersDeployInstructions =
59+
webDeploy === "workers" ? getWorkersDeployInstructions(runCmd) : "";
5760

5861
const hasWeb = frontend?.some((f) =>
5962
[
@@ -143,6 +146,8 @@ export function displayPostInstallInstructions(
143146
if (tauriInstructions) output += `\n${tauriInstructions.trim()}\n`;
144147
if (lintingInstructions) output += `\n${lintingInstructions.trim()}\n`;
145148
if (pwaInstructions) output += `\n${pwaInstructions.trim()}\n`;
149+
if (workersDeployInstructions)
150+
output += `\n${workersDeployInstructions.trim()}\n`;
146151
if (starlightInstructions) output += `\n${starlightInstructions.trim()}\n`;
147152

148153
if (noOrmWarning) output += `\n${noOrmWarning.trim()}\n`;
@@ -309,3 +314,7 @@ function getBunWebNativeWarning(): string {
309314
"WARNING:",
310315
)} 'bun' might cause issues with web + native apps in a monorepo. Use 'pnpm' if problems arise.`;
311316
}
317+
318+
function getWorkersDeployInstructions(runCmd?: string): string {
319+
return `\n${pc.bold("Deploy frontend to Cloudflare Workers:")}\n${pc.cyan("•")} Deploy: ${`cd apps/web && ${runCmd || "bun run"} deploy`}`;
320+
}

bun.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"apps/cli": {
1616
"name": "create-better-t-stack",
17-
"version": "2.22.10",
17+
"version": "2.23.0",
1818
"bin": {
1919
"create-better-t-stack": "dist/index.js",
2020
},

0 commit comments

Comments
 (0)