Skip to content

Commit

Permalink
changes to deploy to vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
Sg108 committed Feb 9, 2024
1 parent 6cca036 commit 180137d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ app.listen(process.env.PORT||3000, (req,res) => {

})


module.exports = app
15 changes: 15 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": 2,
"builds": [
{
"src": "index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "index.js"
}
]
}

0 comments on commit 180137d

Please sign in to comment.