Props
The Makeswift snapshot to render.
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.
PageMetadataSettings
object to specify which metadata fields should be rendered. Each property is a boolean that indicates whether to render that specific metadata field.
title
and description
data from Makeswift use the following:
Changelog
Version | Changes |
---|---|
v0.23.3 | Added metadata prop |
v0.0.1 | Released <Page> component |