Arguments
-
stringrequiredThe API key for the Makeswift site.
-
objectOptions for a runtime instance.
Example
The following example instantiates a newMakeswift client.
src/makeswift/client.ts
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The Makeswift client is used to fetch data from the Makeswift API.
Show child attributes
Makeswift client.
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,
});
Was this page helpful?