Set the base URL for API requests (required before any API calls)
Base URL string or full configuration object
import { setBaseUrl } from "@cpod/sdk";// Simple usage with URL stringsetBaseUrl(process.env.NEXT_PUBLIC_CPOD_BASE_URL!);// With full config including API keysetBaseUrl({ baseUrl: process.env.NEXT_PUBLIC_CPOD_BASE_URL!, apiKey: process.env.CPOD_API_KEY,}); Copy
import { setBaseUrl } from "@cpod/sdk";// Simple usage with URL stringsetBaseUrl(process.env.NEXT_PUBLIC_CPOD_BASE_URL!);// With full config including API keysetBaseUrl({ baseUrl: process.env.NEXT_PUBLIC_CPOD_BASE_URL!, apiKey: process.env.CPOD_API_KEY,});
Set the base URL for API requests (required before any API calls)