Prerender #172
carstenjaksch
started this conversation in
Ideas
Prerender
#172
Replies: 1 comment 2 replies
-
Pages built by primo are prerendered already because they're built as static HTML/CSS, but for some reason the API isn't being consumed when building the site. If you'd like to share the primo.json file for your site I could take a look to see if there's a way to set it up to consume the data on build. But wouldn't you prefer that the content gets fetched on every page load to ensure it's always getting up-to-date data? Otherwise you'll need to re-build your site whenever the data changes. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
SvelteKit offers a prerender option that is useful if a page is consuming an API and that content is not very dynamic/interactive (like fetching a products list).
I exported a site that uses
urql
to get some content and of course that request is made every time the page renders.Would it be possible to implement such a
prerender
option into Primo? That would skyrocket the performance of API-heavy sites like ecommerce stores.Beta Was this translation helpful? Give feedback.
All reactions