diff --git a/makeswift/client.ts b/makeswift/client.ts new file mode 100644 index 0000000..e21b01d --- /dev/null +++ b/makeswift/client.ts @@ -0,0 +1,10 @@ +import { Makeswift } from '@makeswift/runtime/next'; +import { strict } from 'assert'; + +import { runtime } from './runtime'; + +strict(process.env.MAKESWIFT_SITE_API_KEY, 'MAKESWIFT_SITE_API_KEY is required'); + +export const client = new Makeswift(process.env.MAKESWIFT_SITE_API_KEY, { + runtime, +}); diff --git a/makeswift/runtime.ts b/makeswift/runtime.ts new file mode 100644 index 0000000..e988b5c --- /dev/null +++ b/makeswift/runtime.ts @@ -0,0 +1,3 @@ +import { ReactRuntime } from '@makeswift/runtime/react'; + +export const runtime = new ReactRuntime();