feat(cli): upgrade to nuxt 4.1 (#570)

This commit is contained in:
Aman Varshney
2025-09-09 14:19:44 +05:30
committed by GitHub
parent b7c28d3c6d
commit c196a563f3
6 changed files with 13 additions and 13 deletions

View File

@@ -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";

View File

@@ -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,
});