Skip to content

Commit

Permalink
feat: add makeswift runtime and client
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewvolk committed Jun 17, 2024
1 parent 0daac19 commit e654829
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions makeswift/client.ts
Original file line number Diff line number Diff line change
@@ -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,
});
3 changes: 3 additions & 0 deletions makeswift/runtime.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { ReactRuntime } from '@makeswift/runtime/react';

export const runtime = new ReactRuntime();

0 comments on commit e654829

Please sign in to comment.