@@ -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+ }
0 commit comments