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,
|
database: Database,
|
||||||
orm?: ORM,
|
orm?: ORM,
|
||||||
runCmd?: string,
|
runCmd?: string,
|
||||||
_runtime?: Runtime,
|
runtime?: Runtime,
|
||||||
dbSetup?: DatabaseSetup,
|
dbSetup?: DatabaseSetup,
|
||||||
serverDeploy?: string,
|
serverDeploy?: string,
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
@@ -252,12 +252,11 @@ async function getDatabaseInstructions(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (serverDeploy === "wrangler" && dbSetup === "d1") {
|
if (serverDeploy === "wrangler" && dbSetup === "d1") {
|
||||||
if (orm === "prisma" && _runtime === "workers") {
|
if (orm === "prisma" && runtime === "workers") {
|
||||||
instructions.push(
|
instructions.push(
|
||||||
`${pc.yellow(
|
`\n${pc.yellow(
|
||||||
"WARNING:",
|
"WARNING:",
|
||||||
)} Prisma + D1 on Workers with Wrangler has migration issues.
|
)} Prisma + D1 on Workers with Wrangler has migration issues.\n Consider using Alchemy deploy instead of Wrangler for D1 projects.\n`,
|
||||||
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";
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export async function setupNuxtAlchemyDeploy(
|
|||||||
if (!(await fs.pathExists(webAppDir))) return;
|
if (!(await fs.pathExists(webAppDir))) return;
|
||||||
|
|
||||||
await addPackageDependency({
|
await addPackageDependency({
|
||||||
devDependencies: ["alchemy", "nitro-cloudflare-dev", "dotenv"],
|
devDependencies: ["alchemy", "nitro-cloudflare-dev", "dotenv", "wrangler"],
|
||||||
projectDir: webAppDir,
|
projectDir: webAppDir,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ export default defineAppConfig({
|
|||||||
ui: {
|
ui: {
|
||||||
colors: {
|
colors: {
|
||||||
primary: 'emerald',
|
primary: 'emerald',
|
||||||
neutral: 'slate',
|
neutral: 'neutral',
|
||||||
},
|
},
|
||||||
button: {
|
button: {
|
||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
@@ -12,7 +12,7 @@ export default defineNuxtConfig({
|
|||||||
devServer: {
|
devServer: {
|
||||||
port: 3001
|
port: 3001
|
||||||
},
|
},
|
||||||
ssr: false,
|
ssr: true,
|
||||||
{{#if (eq backend "convex")}}
|
{{#if (eq backend "convex")}}
|
||||||
convex: {
|
convex: {
|
||||||
url: process.env.NUXT_PUBLIC_CONVEX_URL,
|
url: process.env.NUXT_PUBLIC_CONVEX_URL,
|
||||||
|
|||||||
@@ -10,12 +10,12 @@
|
|||||||
"postinstall": "nuxt prepare"
|
"postinstall": "nuxt prepare"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/ui": "3.3.0",
|
"@nuxt/ui": "3.3.3",
|
||||||
"nuxt": "^4.0.2",
|
"nuxt": "^4.1.1",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.9.2",
|
||||||
"vue": "^3.5.18",
|
"vue": "^3.5.21",
|
||||||
"vue-router": "^4.5.1",
|
"vue-router": "^4.5.1",
|
||||||
"zod": "^4.0.2"
|
"zod": "^4.1.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tailwindcss": "^4.1.11",
|
"tailwindcss": "^4.1.11",
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
// https://nuxt.com/docs/guide/concepts/typescript
|
// https://nuxt.com/docs/guide/concepts/typescript
|
||||||
|
"files": [],
|
||||||
"references": [
|
"references": [
|
||||||
{
|
{
|
||||||
"path": "./.nuxt/tsconfig.app.json"
|
"path": "./.nuxt/tsconfig.app.json"
|
||||||
|
|||||||
Reference in New Issue
Block a user