Client
getSiteVersion
A static method on the Makeswift
class that returns the current version of the Makeswift site. This method is currently only used when calling getPageSnapshot
and using Pages Router in Next.js.
Arguments
-
The preview data provided in
getStaticProps
.
Example
The following example sets up a catch all route where page snapshots are fetched from Makeswift using siteVersion
and rendered using the <Page>
component.
Was this page helpful?