Skip to content

Commit d3f5c3a

Browse files
committed
vercel
1 parent d9dac74 commit d3f5c3a

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

procode_server/src/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,7 @@ app.use((err, req, res, next) => {
9090
app.listen(port, () => {
9191
console.log(`Server is running on port ${port}`);
9292
});
93+
94+
95+
// Export for server build
96+
module.exports = app;

procode_server/vercel.json

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

0 commit comments

Comments
 (0)