Skip to content

Commit c196a56

Browse files
feat(cli): upgrade to nuxt 4.1 (#570)
1 parent b7c28d3 commit c196a56

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

apps/cli/src/helpers/core/post-installation.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ async function getDatabaseInstructions(
236236
database: Database,
237237
orm?: ORM,
238238
runCmd?: string,
239-
_runtime?: Runtime,
239+
runtime?: Runtime,
240240
dbSetup?: DatabaseSetup,
241241
serverDeploy?: string,
242242
): Promise<string> {
@@ -252,12 +252,11 @@ async function getDatabaseInstructions(
252252
}
253253

254254
if (serverDeploy === "wrangler" && dbSetup === "d1") {
255-
if (orm === "prisma" && _runtime === "workers") {
255+
if (orm === "prisma" && runtime === "workers") {
256256
instructions.push(
257-
`${pc.yellow(
257+
`\n${pc.yellow(
258258
"WARNING:",
259-
)} Prisma + D1 on Workers with Wrangler has migration issues.
260-
Consider using Alchemy deploy instead of Wrangler for D1 projects.`,
259+
)} Prisma + D1 on Workers with Wrangler has migration issues.\n Consider using Alchemy deploy instead of Wrangler for D1 projects.\n`,
261260
);
262261
}
263262
const packageManager = runCmd === "npm run" ? "npm" : runCmd || "npm";

apps/cli/src/helpers/deployment/alchemy/alchemy-nuxt-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function setupNuxtAlchemyDeploy(
1313
if (!(await fs.pathExists(webAppDir))) return;
1414

1515
await addPackageDependency({
16-
devDependencies: ["alchemy", "nitro-cloudflare-dev", "dotenv"],
16+
devDependencies: ["alchemy", "nitro-cloudflare-dev", "dotenv", "wrangler"],
1717
projectDir: webAppDir,
1818
});
1919

apps/cli/templates/frontend/nuxt/app/app.config.ts renamed to apps/cli/templates/frontend/nuxt/app/app.config.ts.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default defineAppConfig({
33
ui: {
44
colors: {
55
primary: 'emerald',
6-
neutral: 'slate',
6+
neutral: 'neutral',
77
},
88
button: {
99
defaultVariants: {

apps/cli/templates/frontend/nuxt/nuxt.config.ts.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineNuxtConfig({
1212
devServer: {
1313
port: 3001
1414
},
15-
ssr: false,
15+
ssr: true,
1616
{{#if (eq backend "convex")}}
1717
convex: {
1818
url: process.env.NUXT_PUBLIC_CONVEX_URL,

apps/cli/templates/frontend/nuxt/package.json.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
"postinstall": "nuxt prepare"
1111
},
1212
"dependencies": {
13-
"@nuxt/ui": "3.3.0",
14-
"nuxt": "^4.0.2",
15-
"typescript": "^5.8.3",
16-
"vue": "^3.5.18",
13+
"@nuxt/ui": "3.3.3",
14+
"nuxt": "^4.1.1",
15+
"typescript": "^5.9.2",
16+
"vue": "^3.5.21",
1717
"vue-router": "^4.5.1",
18-
"zod": "^4.0.2"
18+
"zod": "^4.1.5"
1919
},
2020
"devDependencies": {
2121
"tailwindcss": "^4.1.11",

apps/cli/templates/frontend/nuxt/tsconfig.json.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
// https://nuxt.com/docs/guide/concepts/typescript
3+
"files": [],
34
"references": [
45
{
56
"path": "./.nuxt/tsconfig.app.json"

0 commit comments

Comments
 (0)