@mybe/sdk 1.0.1 → 1.0.2
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 +3 -1
- package/dist/client.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,7 +50,9 @@ const sdk = new MybeSDK({
|
|
|
50
50
|
|
|
51
51
|
The SDK automatically detects the environment:
|
|
52
52
|
- **Development** (`NODE_ENV=development`): Uses `http://localhost:3001/api/v1`
|
|
53
|
-
- **Production**: Uses `https://api.
|
|
53
|
+
- **Production**: Uses `https://fizsdck7l0.execute-api.us-east-1.amazonaws.com/dev/api/v1`
|
|
54
|
+
|
|
55
|
+
> **Note:** The production endpoint uses AWS API Gateway REST API with API key validation and automatic usage tracking.
|
|
54
56
|
|
|
55
57
|
### Custom Base URL (Optional)
|
|
56
58
|
|
package/dist/client.js
CHANGED
|
@@ -13,9 +13,10 @@ export class MybeSDK {
|
|
|
13
13
|
else {
|
|
14
14
|
const isDevelopment = typeof process !== 'undefined' &&
|
|
15
15
|
process.env.NODE_ENV === 'development';
|
|
16
|
+
// Use REST API endpoint for production (with API key validation and usage tracking)
|
|
16
17
|
this.baseUrl = isDevelopment
|
|
17
18
|
? 'http://localhost:3001/api/v1'
|
|
18
|
-
: 'https://api.
|
|
19
|
+
: 'https://fizsdck7l0.execute-api.us-east-1.amazonaws.com/dev/api/v1';
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
/**
|