Skip to content

Commit 72515ac

Browse files
committed
Updates
1 parent 6a1bc23 commit 72515ac

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

api/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import app from "../backend/server";
2+
3+
export default app;

backend/server.js

+2
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ startServer()
5757
),
5858
)
5959
.catch(() => console.log("Final Space API, ops... failed!"))
60+
61+
module.exports = app

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"start": "npm run start:backend",
66
"dev": "npm run build:frontend && npm run dev:backend",
77
"dev:backend": "npm run dev --prefix backend",
8-
"vercel-build": "echo hello",
8+
"vercel-build": "npm run build:frontend && echo hello",
99
"install": "npm run install:frontend && npm run install:backend",
1010
"install:frontend": "npm install --prefix frontend",
1111
"install:backend": "npm install --prefix backend",

vercel.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
{ "version": 2, "rewrites": [{ "source": "/(.*)", "destination": "/" }] }
1+
{
2+
"version": 2,
3+
"functions": {
4+
"api/index.js": {
5+
"memory": 3008,
6+
"maxDuration": 300
7+
}
8+
},
9+
"rewrites": [{ "source": "/(.*)", "destination": "/" }]
10+
}

0 commit comments

Comments
 (0)