mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix(cli): add warning for d1 + prisma + wrangler
This commit is contained in:
@@ -252,6 +252,14 @@ async function getDatabaseInstructions(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (serverDeploy === "wrangler" && dbSetup === "d1") {
|
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";
|
const packageManager = runCmd === "npm run" ? "npm" : runCmd || "npm";
|
||||||
|
|
||||||
instructions.push(
|
instructions.push(
|
||||||
|
|||||||
Reference in New Issue
Block a user