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

real-time update based on material #8

Closed
martinjrobins opened this issue May 22, 2023 · 2 comments · Fixed by #220
Closed

real-time update based on material #8

martinjrobins opened this issue May 22, 2023 · 2 comments · Fixed by #220

Comments

@martinjrobins
Copy link
Contributor

https://nextjs.org/docs/pages/building-your-application/data-fetching/incremental-static-regeneration

could put a cron job in the docker container to continually refresh material, and use ISR to update the pages

@martinjrobins
Copy link
Contributor Author

what might be better is getting the front-end to use an api-endpoint for the material (or sub-bits of the material?) to refresh the static props once loaded

@martinjrobins martinjrobins changed the title use ISR to update material continuously real-time update based on material Jun 19, 2023
@martinjrobins
Copy link
Contributor Author

even better, do both!

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

Successfully merging a pull request may close this issue.

1 participant