Open k-zakhariy opened 1 year ago
Hey, can you please show me the code of the api route or a code example
I got a similar warning,
Next.js can't recognize the exported `config` field in route "/api/files/upload/[fileId]": Unsupported node type "CallExpression" at "config". The default config will be used instead.
I believe it is because dynamic evaluations are not allowed? (https://nextjs.org/docs/messages/invalid-page-config)
Since I know I'm using it in an api route, I just made it static, like:
export const config = {
api: {
bodyParser: false,
},
};
I wrapped API handler as in example with exporting const , but facing following issue: