Skip to content

Commit c5cb918

Browse files
fix(cli): add warning for d1 + prisma + wrangler
1 parent 7063b53 commit c5cb918

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

apps/cli/src/helpers/core/post-installation.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,14 @@ async function getDatabaseInstructions(
252252
}
253253

254254
if (serverDeploy === "wrangler" && dbSetup === "d1") {
255+
if (orm === "prisma" && _runtime === "workers") {
256+
instructions.push(
257+
`${pc.yellow(
258+
"WARNING:",
259+
)} Prisma + D1 on Workers with Wrangler has migration issues.
260+
Consider using Alchemy deploy instead of Wrangler for D1 projects.`,
261+
);
262+
}
255263
const packageManager = runCmd === "npm run" ? "npm" : runCmd || "npm";
256264

257265
instructions.push(

0 commit comments

Comments
 (0)