Skip to content

Commit 84f3efc

Browse files
committed
port
1 parent 791ddd0 commit 84f3efc

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

http-backend/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ app.get('/v1/api/commit/:commitId', async (req,res):Promise<any> => {
4040

4141
})
4242

43-
app.listen(8080);
43+
app.listen(4000);
44+
45+
export default app

http-backend/vercel.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": 2,
3+
"builds": [
4+
{
5+
"src": "index.js",
6+
"use": "@vercel/node"
7+
}
8+
],
9+
"functions": {
10+
"index.js": {
11+
"maxDuration": 60
12+
},
13+
"routes": [
14+
{
15+
"src": "/(.*)",
16+
"dest": "/"
17+
}
18+
]
19+
}
20+
}

0 commit comments

Comments
 (0)