Skip to main content

Documentation Index

Fetch the complete documentation index at: https://makeswift-openapi-sync-cosmos-pr-2639.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

If you haven’t yet upgraded to 0.26.0, please review the 0.26.0 upgrade guide first. v0.27.0 of the runtime introduces support for multiple isolated Makeswift-enabled React regions on a single page. Since version 0.23, the runtime has included built-in elements support, allowing developers to define editable regions within a page. However, this capability implicitly required all page regions to exist under a single React root and within one <MakeswiftRuntimeProvider>. This release removes that limitation. As part of this change, ReactRuntime import for Next.js has been moved from @makeswift/runtime/react to @makeswift/runtime/next. Refer to the official release notes for the full list of changes.

Breaking Changes

ReactRuntime import

ReactRuntime import for Next.js has been moved from @makeswift/runtime/react to @makeswift/runtime/next:
- import { ReactRuntime } from '@makeswift/runtime/react';
+ import { ReactRuntime } from '@makeswift/runtime/next';

export const runtime = new ReactRuntime();

(internal) appOrigin and apiOrigin params

Undocumented appOrigin and apiOrigin params are now passed directly to the ReactRuntime constructor. See internal apps for details.