refactor: migrate to nextjs serverless handler for vercel

This commit is contained in:
MelvynFaith
2026-09-09 17:12:18 +07:00
parent 4dc4a1f716
commit 6edf45b5f4
3 changed files with 1111 additions and 4 deletions
+8 -3
View File
@@ -4,8 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"keywords": [],
"author": "",
@@ -13,9 +14,13 @@
"type": "commonjs",
"dependencies": {
"@apollo/server": "^5.5.1",
"@as-integrations/next": "^4.1.0",
"cors": "^2.8.6",
"dotenv": "^17.4.2",
"graphql": "^16.14.2",
"pg": "^8.23.0"
"next": "^16.3.4",
"pg": "^8.23.0",
"react": "^19.2.8",
"react-dom": "^19.2.8"
}
}