UNPKG

@softr/sdk

Version:

The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.

12 lines (11 loc) • 367 B
//#region src/softr-api.ts const PRODUCTION = { SOFTR_PLATFORM_API_URL: "https://platform-api.softr.io", SOFTR_DATASOURCE_API_URL: "https://datasource-api.softr.io", SOFTR_WORKFLOWS_API_URL: "https://workflows-api.softr.io" }; function softrApiUrl(name) { return (process.env[name] || PRODUCTION[name]).replace(/\/+$/, ""); } //#endregion export { softrApiUrl };