Skip to content

Commit 8f41024

Browse files
committed
Fix Prisma build
1 parent 2420814 commit 8f41024

6 files changed

Lines changed: 54 additions & 43 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ RUN pnpm install prisma@6.11.1
5050
# init prisma to download all required files
5151
RUN pnpm prisma init
5252

53-
COPY --from=build-system /app/package.json ./
53+
COPY --from=build-system /app/prisma.config.ts ./
5454
COPY --from=build-system /app/.output ./app
5555
COPY --from=build-system /app/prisma ./prisma
5656
COPY --from=build-system /app/build ./startup

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"nuxt-security": "2.2.0",
4848
"pino": "^9.7.0",
4949
"pino-pretty": "^13.0.0",
50-
"prisma": "^6.11.1",
50+
"prisma": "6.11.1",
5151
"sanitize-filename": "^1.6.3",
5252
"semver": "^7.7.1",
5353
"stream-mime-type": "^2.0.0",
@@ -87,8 +87,5 @@
8787
"vue3-carousel": "^0.16.0"
8888
}
8989
},
90-
"prisma": {
91-
"schema": "./prisma"
92-
},
9390
"packageManager": "pnpm@10.15.0+sha512.486ebc259d3e999a4e8691ce03b5cac4a71cbeca39372a9b762cb500cfdf0873e2cb16abe3d951b1ee2cf012503f027b98b6584e4df22524e0c7450d9ec7aa7b"
9491
}

pnpm-lock.yaml

Lines changed: 36 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
onlyBuiltDependencies:
2+
- '@prisma/client'
3+
- '@prisma/engines'
4+
- '@tailwindcss/oxide'
5+
- esbuild
6+
- prisma
7+
18
overrides:
29
droplet: link:../../.local/share/pnpm/global/5/node_modules/@drop-oss/droplet
310

prisma.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { PrismaConfig } from "prisma";
2+
import path from "node:path";
3+
4+
export default {
5+
schema: path.join("prisma"),
6+
earlyAccess: true,
7+
} satisfies PrismaConfig;

server/internal/utils/files.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import fs from "fs";
2-
import nodePath from "path";
1+
import fs from "node:fs";
2+
import nodePath from "node:path";
33

44
export function fsStats(folderPath: string) {
55
const stats = fs.statfsSync(folderPath);

0 commit comments

Comments
 (0)