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

Ensure critical pages are statically prebuilt during deployment #1566

Closed
SvSven opened this issue Mar 22, 2023 · 3 comments
Closed

Ensure critical pages are statically prebuilt during deployment #1566

SvSven opened this issue Mar 22, 2023 · 3 comments
Labels
🕵️‍♀️ investigation This is more about investigation than doing 🛠 Technical Technical stuffs like reducing debt, refactor or improve code base

Comments

@SvSven
Copy link
Contributor

SvSven commented Mar 22, 2023

Due to the amount of content we have as well as limitations in the CI process, we can't prebuild the entire website as it would simply take too long. That being said, we should ensure that in the event of downtime with the Sanity API our most critical pages are still accessible and do not render an error page.

  1. Identify which pages should always be prebuilt
  2. Set up prebuilding for said pages
@SvSven SvSven added 🕵️‍♀️ investigation This is more about investigation than doing 🛠 Technical Technical stuffs like reducing debt, refactor or improve code base labels Mar 22, 2023
@nilsml
Copy link
Contributor

nilsml commented Sep 20, 2023

Need to do some testing as caching can be a challenge for pages that change after being prebuilt.

@fernandolucchesi
Copy link
Contributor

What is prevent all pages from being statically built is the missing SANITY_API_TOKEN in the dockerfile. It is commented out on purpose (otherwise built time would be too long). To select what has to be generated, we need to modify the getStaticPaths

@BorghildSelle
Copy link
Contributor

Possible and resolved in #2111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕵️‍♀️ investigation This is more about investigation than doing 🛠 Technical Technical stuffs like reducing debt, refactor or improve code base
Projects
None yet
Development

No branches or pull requests

4 participants