Skip to content

Commit 9b94d78

Browse files
perf: remove playwright/synpress from deps, fix Prisma binaryTargets for Vercel
- Remove @synthetixio/synpress (81MB), @playwright/test, playwright from devDeps These are E2E tools that Vercel downloads but never uses during build - Add binaryTargets = ['native', 'rhel-openssl-3.0.x'] to Prisma schema Fixes PrismaClientInitializationError on Vercel's Linux serverless runtime (Next.js 16+) - Add outputFileTracingIncludes for .prisma/client to prevent Next.js 16 file tracing from excluding Prisma query engine binaries Co-Authored-By: AdaL <adal@sylph.ai>
1 parent 1825bad commit 9b94d78

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

frontend/next.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ const nextConfig = {
9090
]
9191
},
9292
// Tailwind CSS v4 uses postcss plugin
93+
// Include Prisma query engine binaries in deployment bundle.
94+
// Next.js 16 file tracing excludes them by default, causing runtime errors on Vercel.
95+
outputFileTracingIncludes: {
96+
'/**/*': ['./node_modules/.prisma/client/**/*'],
97+
},
9398
experimental: {
9499
optimizePackageImports: ['lucide-react', 'framer-motion', 'recharts'],
95100
},

frontend/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
{
22
"devDependencies": {
3-
"@playwright/test": "1.48.2",
4-
"@synthetixio/synpress": "^4.1.2",
53
"@tailwindcss/postcss": "^4.3.0",
64
"@types/node": "^25.8.0",
75
"@types/react": "^19.2.14",
86
"@types/react-dom": "^19.2.3",
97
"autoprefixer": "^10.5.0",
10-
"playwright": "^1.48.2",
118
"postcss": "^8.5.14",
129
"prisma": "^5.22.0",
1310
"tailwindcss": "^4.3.0",

frontend/prisma/schema.prisma

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
// learn more about it in the docs: https://pris.ly/d/prisma-schema
33

44
generator client {
5-
provider = "prisma-client-js"
5+
provider = "prisma-client-js"
6+
// rhel-openssl-3.0.x is Vercel's serverless Linux runtime (Next.js 16+)
7+
binaryTargets = ["native", "rhel-openssl-3.0.x"]
68
}
79

810
datasource db {

0 commit comments

Comments
 (0)