Skip to content

Commit 898b546

Browse files
committed
docs: simplify serverUrl JSDoc for framework-agnostic usage
Remove the process.env example that doesn't work in Vite and simplify the description to be environment-agnostic. Made-with: Cursor
1 parent 26c7d62 commit 898b546

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/client.types.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,7 @@ export interface CreateClientConfig {
2727
*
2828
* You don't need to set this for production use. The SDK defaults to `https://base44.app`.
2929
*
30-
* Set this when using the CLI's local development server ([`base44 dev`](https://docs.base44.com/developers/backend/overview/local-development)) to point SDK requests at your local machine instead of the hosted backend.
31-
*
32-
* @example
33-
* ```typescript
34-
* const base44 = createClient({
35-
* appId: "my-app-id",
36-
* serverUrl: process.env.NEXT_PUBLIC_BASE44_URL,
37-
* });
38-
* ```
30+
* Set this when using a local development server to point SDK requests at your local machine instead of the hosted backend.
3931
*
4032
* @defaultValue `"https://base44.app"`
4133
*/

0 commit comments

Comments
 (0)