diff --git a/content/docs/utilities/data-objectstack.mdx b/content/docs/utilities/data-objectstack.mdx index 3b1a03cff0..1927793690 100644 --- a/content/docs/utilities/data-objectstack.mdx +++ b/content/docs/utilities/data-objectstack.mdx @@ -152,7 +152,7 @@ function createObjectStackAdapter(config: { import { createObjectStackAdapter } from '@object-ui/data-objectstack'; const dataSource = createObjectStackAdapter({ - baseUrl: 'https://api.objectstack.dev', + baseUrl: 'https://api.example.com', token: 'your-api-token', cache: { maxSize: 100, ttl: 5 * 60 * 1000 }, autoReconnect: true, @@ -160,6 +160,12 @@ const dataSource = createObjectStackAdapter({ }); ``` +`api.example.com` is a placeholder — here and in every other example on this +page. RFC 2606 reserves `example.com` precisely so documentation can name a host +that can never resolve to somebody's real service, so a snippet copied with it +left in fails loudly instead of reaching a stranger's server. Replace it with +your own ObjectStack server's URL. + Pass a record type to get typed results — the default is `unknown`: ```typescript @@ -361,7 +367,7 @@ Pass your own `fetch` to route requests through a proxy or attach extra headers: import { createObjectStackAdapter } from '@object-ui/data-objectstack'; const dataSource = createObjectStackAdapter({ - baseUrl: 'https://api.objectstack.dev', + baseUrl: 'https://api.example.com', fetch: (input, init) => fetch(input, { ...init, headers: { ...init?.headers, 'X-Tenant': 'acme' } }), });