Hello, I just had a quick question regarding build time with astro. I'm running a quite small page in Astro with i18n. Basically there's 10 pages and then 30-40 posts in total, and then that's doubled because of two languages. All of the pages fetches JSON from the CMS as well. When I'm building the project i get like "red numbers" for every page "01:39:12 ├─ /en/updates/news-21/index.html (+1.42s)". It takes like 5 min to build the page. Which is fine, but I'm just curious to know if there's any way to get that build time down? It doesn't matter when building locally but I deployed it on Netlify with build hooks to the CMS and every time someone updates a post och creates a post it triggers a build which could in worst case queue like 10 x5 min builds.
#Slow build time for Hybrid page connected with headless CMS
3 messages · Page 1 of 1 (latest)
How often are changes being made? If it’s quite often. Look into server rendering those pages. https://docs.astro.build/en/guides/server-side-rendering/#opting-out-of-pre-rendering-in-hybrid-mode
Ah, that's an option! Thank you 😄