Skip to content

Commit

Permalink
fix: Fix vercel.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowan-Paul committed Jul 9, 2024
1 parent d26a418 commit 4b6b684
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"private": true,
"license": "UNLICENSED",
"scripts": {
"build": "nest build",
"build": "npx prisma generate && nest build",
"vercel-build": "prisma generate && nest build",
"postinstall": "prisma generate",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
Expand Down
5 changes: 2 additions & 3 deletions apps/api/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
"builds": [
{
"src": "src/main.ts",
"use": "@vercel/node",
"build": "npx prisma generate && cp -r node_modules/@prisma/client/generated prisma-types"
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "src/main.ts",
"methods": ["GET", "POST", "PUT", "DELETE"]
"methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
}
]
}

0 comments on commit 4b6b684

Please sign in to comment.