Hey, was wondering if anyone has encountered this error before? Happens when I try to deploy to Vercel. It builds fine locally and npm run dev also works, checked all my api calls and middleware, but still having trouble locating where it's coming from. Any ideas would be much appreciated!
value in header item must be string for route {"source":"/api/:path*","headers":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin"},{"key":"Access-Control-Allow-Methods","value":"GET,DELETE,PATCH,POST,PUT"},{"key":"Access-Control-Allow-Headers","value":"X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"}]}
Error: Invalid header found
Error: Command "npm run build" exited with 1