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.

13 lines (11 loc) • 400 B
import { panic } from "./assertions.js"; //#region src/softr-config.ts function softrConfig() { return typeof __SOFTR_CONFIG__ === "undefined" ? panic("softr.json is missing") : __SOFTR_CONFIG__; } /** The app's logo, as `logo` in softr.json sets it. An app without the key gets the "layers" icon. */ function getLogo() { return softrConfig().logo; } //#endregion export { getLogo, softrConfig };