Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching problem after initial routes scan in server-routes #204

Closed
arashsheyda opened this issue Apr 25, 2023 · 1 comment
Closed

Caching problem after initial routes scan in server-routes #204

arashsheyda opened this issue Apr 25, 2023 · 1 comment

Comments

@arashsheyda
Copy link
Member

Currently, in the server-routes, after the initial routes scan, any new routes created are not shown in server-routes
is it a good idea to add a clear-cache button so user can manually re-scan the routes or we could clear the cache whenever a new route is added(does nitro has a hook like that?)

@antfu
Copy link
Member

antfu commented Apr 25, 2023

Yes, we need to watcher to get the updates from the FS, which we haven't implemented, I think. PR is welcome if you want to work on it.

Meanwhile, @pi0 made the open API entry point in nitrojs/nitro#1162, which we could leverage later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants