Markus Blomqvist
Markus Blomqvist
Yeah this is a valid concern. Currently the way shown in your example is the best way to reuse logic for several API endpoints. Since Next.js has the global middleware...
Yeah I think the existing logging could be improved for sure. What kind of information would you expect to see logged by the framework?
> Something more on the lines of how NestJS manages em. For production, they throw JSON in the terminal. For dev, it's formatted. > > https://docs.nestjs.com/techniques/logger > > Mostly we...
I would go with the Next.js [middleware](https://nextjs.org/docs/app/building-your-application/routing/middleware) and add redirection logic there for serving both docs route and the `openapi.json` file from the public folder only for authenticated users and...
Not planning to advance this unless there's significant demand from multiple users, closing for now but any contributions are welcome if you can make a good general solution for this.
Can you still reproduce this with `v6.0.0`?
Which version of `next-rest-framework` are you using? Would you mind trying again with `v6.0.0` and check if the problem is still present?
Like @ghislaine-laios mentioned, the introspection (I guess that's a good term) is very hard to do in a generic way that supports every type of syntax and bundling output, but...
No, this is not intentional, thanks for reporting. Do you have a reproducible example and what versions of Node.js, Next.js and this framework are you experiencing this with and on...
> Node 18.18.2, Next JS 14.1.3 and framework 5.1.11 on Windows 11 - I can put together a standalone example if needed. > > Also, is it possible to use...