From c5cb9184e649129140112ad0ed71bdc45868db7b Mon Sep 17 00:00:00 2001 From: Aman Varshney Date: Mon, 8 Sep 2025 22:19:53 +0530 Subject: [PATCH] fix(cli): add warning for d1 + prisma + wrangler --- apps/cli/src/helpers/core/post-installation.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/cli/src/helpers/core/post-installation.ts b/apps/cli/src/helpers/core/post-installation.ts index 54b9b41..7317786 100644 --- a/apps/cli/src/helpers/core/post-installation.ts +++ b/apps/cli/src/helpers/core/post-installation.ts @@ -252,6 +252,14 @@ async function getDatabaseInstructions( } if (serverDeploy === "wrangler" && dbSetup === "d1") { + if (orm === "prisma" && _runtime === "workers") { + instructions.push( + `${pc.yellow( + "WARNING:", + )} Prisma + D1 on Workers with Wrangler has migration issues. + Consider using Alchemy deploy instead of Wrangler for D1 projects.`, + ); + } const packageManager = runCmd === "npm run" ? "npm" : runCmd || "npm"; instructions.push(