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

can i redirect with path list from api updated daily ? #94

Open
tuananhbfs opened this issue Nov 30, 2020 · 2 comments
Open

can i redirect with path list from api updated daily ? #94

tuananhbfs opened this issue Nov 30, 2020 · 2 comments

Comments

@tuananhbfs
Copy link

I used this module to do redirection from 1 path list obtained via api. But it seems that the list is only established once during "build", is there a way for this list to update itself according to the API?
Thank you!

@griable
Copy link

griable commented Mar 5, 2021

We are exactly encountering the same issue.
Currently, we have to restart the server to get it updated which is far from ideal for our client.
@tuananhbfs, did you find a workaround by any chance?

Thanks!

@adnascent
Copy link

I ran into a similar issue. I thought initially to use setInterval mutating the redirects array by reference, but no luck. Ended up just using a custom serverMiddleware with memory-cache module instead. Not sure if that's the best way or if I'm missing something.

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

3 participants