Omar Farooq
Omar Farooq17mo ago

Is it possible to pull in data using getStaticProps from Convex in next.js builds?

We store metadata for Google, Facebook (ie page <title> and page <descriptions>) on Convex, seem to be having a problem with those rendering for Google and other crawlers, the data is not showing up. Seems to due to page content not being ready to serve on load, ie. need to complete the Convex queries first.
2 Replies
ballingt
ballingt17mo ago
The Convex HTTP client is a good fit for server-side rendering or ahead-of-time getStaticProps cases like this https://docs.convex.dev/client/javascript
Omar Farooq
Omar FarooqOP17mo ago
Got it, thank you!

Did you find this page helpful?