mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): upgrade to nuxt 4.1 (#570)
This commit is contained in:
@@ -236,7 +236,7 @@ async function getDatabaseInstructions(
|
||||
database: Database,
|
||||
orm?: ORM,
|
||||
runCmd?: string,
|
||||
_runtime?: Runtime,
|
||||
runtime?: Runtime,
|
||||
dbSetup?: DatabaseSetup,
|
||||
serverDeploy?: string,
|
||||
): Promise<string> {
|
||||
@@ -252,12 +252,11 @@ async function getDatabaseInstructions(
|
||||
}
|
||||
|
||||
if (serverDeploy === "wrangler" && dbSetup === "d1") {
|
||||
if (orm === "prisma" && _runtime === "workers") {
|
||||
if (orm === "prisma" && runtime === "workers") {
|
||||
instructions.push(
|
||||
`${pc.yellow(
|
||||
`\n${pc.yellow(
|
||||
"WARNING:",
|
||||
)} Prisma + D1 on Workers with Wrangler has migration issues.
|
||||
Consider using Alchemy deploy instead of Wrangler for D1 projects.`,
|
||||
)} Prisma + D1 on Workers with Wrangler has migration issues.\n Consider using Alchemy deploy instead of Wrangler for D1 projects.\n`,
|
||||
);
|
||||
}
|
||||
const packageManager = runCmd === "npm run" ? "npm" : runCmd || "npm";
|
||||
|
||||
@@ -13,7 +13,7 @@ export async function setupNuxtAlchemyDeploy(
|
||||
if (!(await fs.pathExists(webAppDir))) return;
|
||||
|
||||
await addPackageDependency({
|
||||
devDependencies: ["alchemy", "nitro-cloudflare-dev", "dotenv"],
|
||||
devDependencies: ["alchemy", "nitro-cloudflare-dev", "dotenv", "wrangler"],
|
||||
projectDir: webAppDir,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user