deploy vercel

This commit is contained in:
unknown 2025-06-05 00:56:18 +07:00
parent 27882ce9e6
commit 137f1f6dd8
2 changed files with 17 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "backend", "name": "backend",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "app.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },

16
backend/vercel.json Normal file
View File

@ -0,0 +1,16 @@
{
"version": 2,
"builds": [
{
"src": "app.js",
"use": "@vercel/node",
"config": { "includeFiles": ["dist/**"] }
}
],
"routes": [
{
"src": "/(.*)",
"dest": "app.js"
}
]
}