From f4bd78ac44d9e027c73c470302fdf687e70bfb8d Mon Sep 17 00:00:00 2001 From: streaper2 Date: Mon, 20 Apr 2026 14:57:46 +0200 Subject: [PATCH] maj pour le CICD et deploiement pour le build admin plus supp fichier env --- .gitignore | 2 ++ package.json | 7 ++----- prisma.config.js | 5 ++++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 7ab0f0d..428e2a4 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,8 @@ node_modules dist dist-ssr *.local +.env +.env.local # Editor directories and files .vscode/* diff --git a/package.json b/package.json index 777ff30..3d54ae7 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,9 @@ "dev": "next dev -p 3000", "dev:admin": "npm run dev --prefix admin -- -p 3001", "all": "concurrently \"npm run dev\" \"npm run dev:admin\"", - "build": "prisma generate && next build", + "build": "prisma generate && next build && npm run build:admin", "build:admin": "npm run build --prefix admin", - "start": "next start", + "start": "npx prisma db push && next start", "start:admin": "npm run start --prefix admin", "lint": "next lint", "lint:admin": "npm run lint --prefix admin" @@ -45,8 +45,5 @@ }, "devDependencies": { "concurrently": "^9.2.1" - }, - "prisma": { - "seed": "tsx prisma/seed.ts" } } \ No newline at end of file diff --git a/prisma.config.js b/prisma.config.js index b22f1a9..5d6de00 100644 --- a/prisma.config.js +++ b/prisma.config.js @@ -11,4 +11,7 @@ export default { datasource: { url: process.env.DATABASE_URL, }, -}; + migrations: { + seed: 'npx tsx prisma/seed.ts', + }, +}; \ No newline at end of file