Skip to main content

Props

Snapshot
required
The Makeswift snapshot to render.
boolean | PageMetadataSettings
default:"true"
Controls which page metadata tags from Makeswift are rendered in the <head> of the page. More on this in the Rendering metadata section below.

Example

App Router

The following example sets up a catch all dynamic route in the app router under [[...path]]/page.tsx.
src/app/[[...path]]/page.tsx

Pages Router

The following example sets up a catch all dynamic route in the pages router under [[...path]].tsx.

Rendering metadata

By default, the <Page> component will render metadata tags in the <head> of your page with data provided in the Visual Builder, such as the page title, description, social image, etc. If you have other sources of truth for your page metadata, you can avoid collisions with Makeswift by controlling which fields are rendered with the metadata prop. By default, all metadata from Makeswift is rendered. You can pass a boolean to disable or enable all metadata fields. By passing false, you can disable all Makeswift metadata fields from being rendered. This implies that you will manually handle rendering metadata on your own.
For more granular control, you can pass a PageMetadataSettings object to specify which metadata fields should be rendered. Each property is a boolean that indicates whether to render that specific metadata field.
Additionally, omitting a field will result in it not being rendered. For example, to only render the title and description data from Makeswift use the following:

Changelog