Skip to content

Commit

Permalink
Merge pull request #36 from zulfikarrosadi/feat/logger
Browse files Browse the repository at this point in the history
fix(deployment): use api folder so vercel will work
  • Loading branch information
zulfikarrosadi authored Nov 17, 2024
2 parents 26fdd44 + 2f433f0 commit 49544a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions api/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import app from '../src/index'

export default app
4 changes: 2 additions & 2 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"version": 2,
"builds": [
{
"src": "src/index.ts",
"src": "api/index.ts",
"use": "@vercel/node"
}
],
"rewrites": [
{
"source": "/(.*)",
"destination": "/src/index.ts"
"destination": "/api"
}
]
}

0 comments on commit 49544a9

Please # to comment.