🔧 Configuration Changes: - Remove specific runtime version from vercel.json - Remove buildCommand that might be causing conflicts - Let Vercel use default Node.js runtime settings 🧪 Simple Test Endpoint: - Add /api/simple with minimal dependencies - Use traditional Vercel function signature (req, res) - No imports or complex operations to isolate the issue This should help identify if the problem is with our function configuration, imports, or Vercel setup.
49 lines
961 B
JSON
49 lines
961 B
JSON
{
|
|
"rewrites": [
|
|
{
|
|
"source": "/((?!api|static|_next).*)",
|
|
"destination": "/index.html"
|
|
}
|
|
],
|
|
"headers": [
|
|
{
|
|
"source": "/static/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=31536000, immutable"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/api/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Methods",
|
|
"value": "GET, POST, PUT, DELETE, OPTIONS"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Headers",
|
|
"value": "Content-Type, Authorization"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "X-Frame-Options",
|
|
"value": "DENY"
|
|
},
|
|
{
|
|
"key": "X-Content-Type-Options",
|
|
"value": "nosniff"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|