getPageSnapshot
An instance method of the Makeswift client that fetches a snapshot of a Makeswift page at a given path. This snapshot is only intended to be rendered by the <Page> component.
Arguments
The path of the page.
Options for site version and locale.
Untitled
For App Router, this is the return value from calling getSiteVersion. For Pages Router, this is the return value from Makeswift.getSiteVersion.
A valid locale string (ex. "en-US").
Controls whether a request for a localized page should fallback to the default locale if the requested locale is not available.
Return type
Examples
Basic usage
The following example sets up a catch all route where page snapshots are fetched from Makeswift and rendered using the <Page> component.
Localization
The following example uses the locale param in getStaticProps to fetch a localized snapshot of a page.