fix(cli): add warning for d1 + prisma + wrangler

This commit is contained in:
Aman Varshney
2025-09-08 22:19:53 +05:30
parent 7063b530ff
commit c5cb9184e6

View File

@@ -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(