I am building a farcaster frame using frog library, so I am using a dynamic path in the api route as documented in frog.fm.
On running
next build
in local development and in vercel build, I get this error:
src/app/api/[[...routes]]/route.tsx
Type error: Route "src/app/api/[[...routes]]/route.tsx" does not match the required types of a Next.js Route.
"app" is not a valid Route export field.
What could be the issue?