Skip to content

Commit

Permalink
chore: set up vecel settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Williancc1557 committed Apr 22, 2024
1 parent a4b844b commit f80a629
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
.env
coverage
dist
.vercel
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"test:verbose": "jest --passWithNoTests --runInBand",
"test:unit": "yarn test -- --watch -c jest-unit-config.js",
"test:integration": "yarn test -- --watch -c jest-integration-config.js",
"test:ci": "yarn test -- --coverage"
"test:ci": "yarn test -- --coverage",
"vercel-build": "echo hello world"
},
"devDependencies": {
"@shelf/jest-mongodb": "^4.2.0",
Expand Down
16 changes: 15 additions & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
{ "version": 2, "rewrites": [{ "source": "/(.*)", "destination": "/api" }] }
{
"version": 2,
"builds": [
{
"src": "dist/src/main/server.js",
"use": "@now/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "dist/src/main/server.js"
}
]
}

0 comments on commit f80a629

Please sign in to comment.