getWorkspaceSetting() function retrieves a single workspace setting value by key.
useWorkspaceSettings() instead, which provides real-time updates when settings change.
Parameters
The key of the setting to retrieve. Must match a key defined in your workspace settings schema.The key is fully typed, so TypeScript will only allow valid setting keys.
Returns
A promise that resolves to the value of the requested setting. The return type is automatically inferred based on the setting type in your schema.Example
check-sync-status.server.ts
In Client Code
widget.tsx
Type Safety
The function’s parameter and return type are automatically inferred from your schema:app.settings.ts