diff --git a/api/index.ts b/api/index.ts new file mode 100644 index 0000000..d71dd4d --- /dev/null +++ b/api/index.ts @@ -0,0 +1,3 @@ +import app from '../src/index' + +export default app diff --git a/vercel.json b/vercel.json index 7beddb0..e7078a3 100644 --- a/vercel.json +++ b/vercel.json @@ -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" } ] }