Skip to content

Commit

Permalink
Add build command to vercel config for api
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreasgdp committed May 2, 2023
1 parent aa4ff1c commit 0302ea7
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions apps/api/vercel.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"version": 2,
"builds": [
{
"src": "src/main.ts",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "src/main.ts",
"methods": ["GET", "POST", "PUT", "DELETE"]
}
]
"version": 2,
"buildCommand": "yarn prisma:generate && yarn db:push && yarn build:api",
"builds": [
{
"src": "src/main.ts",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "src/main.ts",
"methods": ["GET", "POST", "PUT", "DELETE"]
}
]
}

2 comments on commit 0302ea7

@vercel
Copy link

@vercel vercel bot commented on 0302ea7 May 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mealtime-api – ./apps/api

mtapi.bhelpful.net
mealtime-api-mealtime.vercel.app
mealtime-api-git-master-mealtime.vercel.app
mealtime-api.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 0302ea7 May 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mealtime – ./

mealtime-mealtime.vercel.app
mealtime-git-master-mealtime.vercel.app
mealtime.bhelpful.net

Please sign in to comment.