vibex-sh 0.9.8 → 0.9.9
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/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -66,7 +66,7 @@ function deriveSocketUrl(webUrl) {
|
|
|
66
66
|
// For vibex.sh domains, use Workers WebSocket endpoint
|
|
67
67
|
else if (url.hostname.includes('vibex.sh')) {
|
|
68
68
|
// Use Cloudflare Workers WebSocket endpoint
|
|
69
|
-
const workerUrl = process.env.VIBEX_WORKER_URL || 'https://
|
|
69
|
+
const workerUrl = process.env.VIBEX_WORKER_URL || 'https://ingest.vibex.sh';
|
|
70
70
|
return workerUrl.replace('https://', 'wss://').replace('http://', 'ws://');
|
|
71
71
|
}
|
|
72
72
|
// For other domains, derive from web URL
|
|
@@ -113,7 +113,7 @@ function getUrls(options) {
|
|
|
113
113
|
|
|
114
114
|
// Priority 5: Production defaults
|
|
115
115
|
// Use Worker WebSocket endpoint instead of old Socket.io server
|
|
116
|
-
const defaultWorkerUrl = process.env.VIBEX_WORKER_URL || 'https://
|
|
116
|
+
const defaultWorkerUrl = process.env.VIBEX_WORKER_URL || 'https://ingest.vibex.sh';
|
|
117
117
|
return {
|
|
118
118
|
webUrl: 'https://vibex.sh',
|
|
119
119
|
socketUrl: socket || defaultWorkerUrl.replace('https://', 'wss://').replace('http://', 'ws://'),
|
|
@@ -726,7 +726,7 @@ async function main() {
|
|
|
726
726
|
ingestUrl = `${process.env.VIBEX_WORKER_URL}/api/v1/ingest`;
|
|
727
727
|
} else {
|
|
728
728
|
// Production default - use Worker URL (not web URL)
|
|
729
|
-
const defaultWorkerUrl = 'https://
|
|
729
|
+
const defaultWorkerUrl = 'https://ingest.vibex.sh';
|
|
730
730
|
ingestUrl = `${defaultWorkerUrl}/api/v1/ingest`;
|
|
731
731
|
}
|
|
732
732
|
|