diff --git a/Dockerfile b/Dockerfile index 2d22c46..0f6c775 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ ENV PATH /app/node_modules/.bin:$PATH # On copie tout, on installe tout, on build tout au même endroit COPY . . -RUN npm install +RUN npm ci RUN npx prisma generate RUN npm run build diff --git a/next-env.d.ts b/next-env.d.ts index c4b7818..9edff1c 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/dev/types/routes.d.ts"; +import "./.next/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/nixpacks.toml b/nixpacks.toml index 1e4b8d6..fbb13b4 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -1,12 +1,11 @@ [phases.setup] -nixPkgs = ["nodejs_23", "openssl"] +nixPkgs = ["nodejs_22", "openssl"] [phases.install] cmds = ["npm ci"] [phases.build] -cmds = ["npm install", "npx prisma generate", "npm run build"] +cmds = ["npx prisma generate", "npm run build"] [start] -# Exécute prisma db push au runtime (démarrage du conteneur) -cmd = "npx prisma db push --accept-data-loss && npm start" +cmd = "npm start"