Open CarlosZiegler opened 1 month ago
Tus is just a barebones Node.js HTTP handler so it can be integrated everywhere and into everything. It shouldn't be too hard to add it to the app router, you probably have to export the same handler a couple times as you know have to export per HTTP method.
I will take a look at it but if you're already experimenting yourself would be great to update here on your progress.
Initial checklist
Problem
Hi TUS team,
I’m currently integrating TUS into a project that uses the Next.js App Router (with /app directory structure). However, I’ve noticed that the examples and documentation primarily focus on the older Next.js page-based router.
Could you confirm whether there’s official support for the Next.js App Router? If so, I’d appreciate any examples or best practices that could help in implementing bus with this new router structure. If this feature is not yet supported, do you have any insights on when it might be available?
Thanks in advance!
Solution
This will be works on APP router like pages/api
Alternatives
I dont know :)