Skip to main content
This page documents the legacy settings API, which is deprecated. It keeps working for existing apps, but new apps should define settings in src/app/settings/ instead; see Workspace settings. To convert an existing app, use the folder structure migration guide.
The getWorkspaceSettings() function retrieves all workspace settings values.
For React components, consider using 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 in src/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