@heyputer/puter.js 2.0.12 → 2.0.13

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 CHANGED
@@ -88,6 +88,21 @@ puter.ai.chat('What color was Napoleon\'s white horse?').then(response => {
88
88
 
89
89
  <br>
90
90
 
91
+ ## Setting Custom Origins
92
+ By default puter.js uses the official Puter API and GUI origins. You can customize these origins by setting global variables before importing the SDK like so:
93
+
94
+ ```js
95
+ // For API origin
96
+ globalThis.PUTER_API_ORIGIN = 'https://custom-api.puter.com';
97
+ // For GUI origin
98
+ globalThis.PUTER_ORIGIN = 'https://custom-gui.puter.com';
99
+
100
+ import {puter} from '@heyputer/puter.js'; // or however you import it for your env
101
+ ```
102
+ <br>
103
+
104
+ ---
105
+
91
106
  ## Documentation & Community
92
107
 
93
108
  - [Developer Site](https://developer.puter.com)