Hi,
I noticed that the page https://docs.fal.ai/model-apis/integrations/nextjs shows a deprecated way of using fal.ai. According to the examples in your repository (https://github.com/fal-ai/fal-js/blob/main/apps/demo-nextjs-app-router/app/api/fal/proxy/route.ts), the createRouteHandler function should be used instead of route, but the current documentation does not mention this.
I would have liked to fix this issue myself, but I couldn't find the repository where the documentation is hosted to submit a pull request.
Best regards