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

Test working with static site generation (SSG) like gatsby #139

Open
djay opened this issue Aug 28, 2024 · 1 comment
Open

Test working with static site generation (SSG) like gatsby #139

djay opened this issue Aug 28, 2024 · 1 comment

Comments

@djay
Copy link
Member

djay commented Aug 28, 2024

needs c.webhooks or similar. also needs preview mode or preview server on the frontend while editing so the updates are fast

@djay djay changed the title Test working with static site generation Test working with static site generation (SSG) like gatsby Sep 9, 2024
@djay
Copy link
Member Author

djay commented Sep 9, 2024

Gastby uses a preview server - https://www.gatsbyjs.com/docs/how-to/local-development/running-a-gatsby-preview-server/
But it still needs a request sent to that server to tell it to refresh.
It's not clear if that instantly invalidate so that a page request afterwards will result in the updated content.

if we use c.webhooks to do this then might not guarente the refresh happens before hydra tries to load the page again. So perhaps we need to more directly support this kind of webhook so we can ensure we always get the refreshed page after save?
Or perhaps we just have change the UI somewhat so the user doesn't always expect the page to be updated? maybe a delay that does an extra refresh after a certain about of time?

Or do you make the frontend switch to SSR mode when editing? - https://www.gatsbyjs.com/docs/reference/rendering-options/server-side-rendering/

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

1 participant