🔧 API Route Format: - Add /api/simple.js using standard Vercel function format - Add /api/hello.ts using proper Next.js API route format - Install Next.js and types for proper API route support 🧪 Testing Multiple Formats: - JavaScript endpoint: /api/simple.js - TypeScript endpoint: /api/hello.ts - Both use traditional req/res pattern instead of NextRequest/NextResponse This should help identify the correct API format for Vercel functions.
69 lines
1.7 KiB
JSON
69 lines
1.7 KiB
JSON
{
|
|
"name": "frontend",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"engines": {
|
|
"node": "18.x"
|
|
},
|
|
"dependencies": {
|
|
"@stackframe/stack": "^2.8.22",
|
|
"@tanstack/react-query": "^5.83.0",
|
|
"@testing-library/dom": "^10.4.0",
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@testing-library/react": "^16.3.0",
|
|
"@testing-library/user-event": "^13.5.0",
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"@types/jest": "^27.5.2",
|
|
"@types/jsonwebtoken": "^9.0.10",
|
|
"@types/next": "^8.0.7",
|
|
"@types/node": "^16.18.126",
|
|
"@types/pg": "^8.15.4",
|
|
"@types/react": "^19.1.8",
|
|
"@types/react-dom": "^19.1.6",
|
|
"@types/react-router-dom": "^5.3.3",
|
|
"@vercel/analytics": "^1.5.0",
|
|
"@vercel/blob": "^1.1.1",
|
|
"@vercel/speed-insights": "^1.2.0",
|
|
"axios": "^1.10.0",
|
|
"bcryptjs": "^3.0.2",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"next": "^15.4.2",
|
|
"pg": "^8.16.3",
|
|
"react": "^19.1.0",
|
|
"react-dom": "^19.1.0",
|
|
"react-router-dom": "^7.7.0",
|
|
"react-scripts": "5.0.1",
|
|
"tesseract.js": "^6.0.1",
|
|
"typescript": "^4.9.5",
|
|
"web-vitals": "^2.1.4"
|
|
},
|
|
"scripts": {
|
|
"start": "react-scripts start",
|
|
"build": "react-scripts build",
|
|
"test": "react-scripts test",
|
|
"eject": "react-scripts eject"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": [
|
|
"react-app",
|
|
"react-app/jest"
|
|
]
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"autoprefixer": "^10.4.21",
|
|
"postcss": "^8.5.6",
|
|
"tailwindcss": "^3.4.17"
|
|
}
|
|
}
|