@sylphx/sdk 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -5
- package/dist/index.d.cts +16908 -5920
- package/dist/index.d.ts +16908 -5920
- package/dist/index.js +179 -145
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +179 -142
- package/dist/index.mjs.map +1 -1
- package/dist/nextjs/index.d.cts +5378 -1202
- package/dist/nextjs/index.d.ts +5378 -1202
- package/dist/nextjs/index.js +78 -37
- package/dist/nextjs/index.js.map +1 -1
- package/dist/nextjs/index.mjs +76 -37
- package/dist/nextjs/index.mjs.map +1 -1
- package/dist/react/index.d.cts +5353 -1212
- package/dist/react/index.d.ts +5353 -1212
- package/dist/react/index.js +118 -96
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +118 -96
- package/dist/react/index.mjs.map +1 -1
- package/dist/server/index.d.cts +14368 -3312
- package/dist/server/index.d.ts +14368 -3312
- package/dist/server/index.js +82 -47
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +80 -47
- package/dist/server/index.mjs.map +1 -1
- package/dist/web-analytics.js +1 -1
- package/dist/web-analytics.js.map +1 -1
- package/dist/web-analytics.mjs +1 -1
- package/dist/web-analytics.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -407,13 +407,23 @@ import type { AuthResult } from '@sylphx/sdk/nextjs'
|
|
|
407
407
|
|
|
408
408
|
---
|
|
409
409
|
|
|
410
|
-
## Self-Hosting
|
|
410
|
+
## Self-Hosting / Custom Deployment
|
|
411
411
|
|
|
412
|
-
If you're running your own Sylphx Platform deployment:
|
|
412
|
+
If you're running your own Sylphx Platform deployment, configure the base URL via the CLI:
|
|
413
413
|
|
|
414
414
|
```bash
|
|
415
|
-
|
|
416
|
-
SYLPHX_PLATFORM_URL=https://platform.your-domain.com
|
|
415
|
+
SYLPHX_API_URL=https://platform.your-domain.com sylphx deploy
|
|
417
416
|
```
|
|
418
417
|
|
|
419
|
-
|
|
418
|
+
Or in the SDK via `projectRef`:
|
|
419
|
+
|
|
420
|
+
```ts
|
|
421
|
+
import { createConfig } from '@sylphx/sdk'
|
|
422
|
+
const config = createConfig({
|
|
423
|
+
secretKey: process.env.SYLPHX_SECRET_KEY!,
|
|
424
|
+
projectRef: 'your-project-ref', // from Platform console
|
|
425
|
+
})
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
> **Note:** `SYLPHX_PLATFORM_URL` has been removed (was deprecated). Use `projectRef` instead.
|
|
429
|
+
> If using hosted Sylphx at [sylphx.com](https://sylphx.com), no additional config is needed.
|