An API route for Makeswift that adds support for preview mode, on-demand revalidation, and other features that make Makeswift work seamlessly with your Next.js app.
The API key for the Makeswift site.
Options for site version and locale.
The following example adds Spline Sans and Spline Sans Mono fonts to the site using next/font
and adds them to the MakeswiftApiHandler
. Using a variable font reduces the number of font files requested.
onPublish
eventAn API route for Makeswift that adds support for preview mode, on-demand revalidation, and other features that make Makeswift work seamlessly with your Next.js app.
The API key for the Makeswift site.
Options for site version and locale.
The following example adds Spline Sans and Spline Sans Mono fonts to the site using next/font
and adds them to the MakeswiftApiHandler
. Using a variable font reduces the number of font files requested.
onPublish
event