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

View File

@@ -3,7 +3,7 @@ export default defineAppConfig({
ui: {
colors: {
primary: 'emerald',
neutral: 'slate',
neutral: 'neutral',
},
button: {
defaultVariants: {

View File

@@ -12,7 +12,7 @@ export default defineNuxtConfig({
devServer: {
port: 3001
},
ssr: false,
ssr: true,
{{#if (eq backend "convex")}}
convex: {
url: process.env.NUXT_PUBLIC_CONVEX_URL,

View File

@@ -10,12 +10,12 @@
"postinstall": "nuxt prepare"
},
"dependencies": {
"@nuxt/ui": "3.3.0",
"nuxt": "^4.0.2",
"typescript": "^5.8.3",
"vue": "^3.5.18",
"@nuxt/ui": "3.3.3",
"nuxt": "^4.1.1",
"typescript": "^5.9.2",
"vue": "^3.5.21",
"vue-router": "^4.5.1",
"zod": "^4.0.2"
"zod": "^4.1.5"
},
"devDependencies": {
"tailwindcss": "^4.1.11",

View File

@@ -1,5 +1,6 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"files": [],
"references": [
{
"path": "./.nuxt/tsconfig.app.json"