getWorkspaceSettings() function retrieves all workspace settings values.
useWorkspaceSettings() instead, which provides real-time updates when settings change.
Parameters
This function takes no parameters. The return type is automatically inferred from your workspace settings schema defined insrc/app.settings.ts.
Returns
A promise that resolves to an object containing all workspace settings values as defined in your schema. The returned object is fully typed based on your schema definition.Example
In a Server Function
sync-records.server.ts
In Client Code
record-action.tsx
Type Safety
The function’s return type is automatically inferred from your schema:app.settings.ts