Arguments
-
The preview data provided in
getStaticProps
.
Example
The following example sets up a catch all route where page snapshots are fetched from Makeswift usingsiteVersion
and rendered using the <Page>
component.
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.
getStaticProps
.siteVersion
and rendered using the <Page>
component.