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

See if we can server-side render everything #138

Closed
jedahan opened this issue Jan 24, 2023 · 1 comment
Closed

See if we can server-side render everything #138

jedahan opened this issue Jan 24, 2023 · 1 comment

Comments

@jedahan
Copy link
Contributor

jedahan commented Jan 24, 2023

The s3 data is available a build-time, so we should be able to use https://nextjs.org/docs/basic-features/data-fetching/get-static-props#using-getstaticprops-to-fetch-data-from-a-cms

The downside is that we will want to re-render every X minutes, when the data gets updated. This matters for the LIVE site but not the archival site.

@jedahan
Copy link
Contributor Author

jedahan commented Feb 10, 2023

Now that #142 is ready, I think we just need to setup a github deploy cron job and it will do things automatically. We can maybe even have the pluspool-led-scrape-data action have a webhook on successfully completion to kick off this page rebuild...

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