deploy vercel

This commit is contained in:
unknown 2025-06-05 01:50:17 +07:00
parent 2d18d4f161
commit 9a90ea2742
2 changed files with 7 additions and 6 deletions

View File

@ -2,9 +2,10 @@
"name": "backend", "name": "backend",
"version": "1.0.0", "version": "1.0.0",
"main": "app.js", "main": "app.js",
"scripts": { "scripts": {
"start": "node app.js" "test": "echo \"Error: no test specified\" && exit 1",
}, "start": "node app.js"
},
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",
@ -28,4 +29,4 @@
"@types/swagger-ui-express": "^4.1.8", "@types/swagger-ui-express": "^4.1.8",
"sequelize-cli": "^6.6.2" "sequelize-cli": "^6.6.2"
} }
} }

View File

@ -2,7 +2,7 @@
"version": 2, "version": 2,
"builds": [ "builds": [
{ {
"src": "app.js", "src": "./app.js",
"use": "@vercel/node" "use": "@vercel/node"
} }
@ -10,7 +10,7 @@
"routes": [ "routes": [
{ {
"src": "/(.*)", "src": "/(.*)",
"dest": "app.js" "dest": "/"
} }
] ]
} }