@volter/tunnel 1.1.0 → 1.1.1
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/client/tunnel-client.ts +6 -1
- package/package.json +1 -1
package/client/tunnel-client.ts
CHANGED
|
@@ -845,8 +845,13 @@ if (import.meta.main) {
|
|
|
845
845
|
process.exit(1);
|
|
846
846
|
}
|
|
847
847
|
|
|
848
|
+
// Default to the Cloudflare Workers + Durable Objects relay. The old Fly relay
|
|
849
|
+
// (vgit-tunnels.volterapp.com) returns HTTP 200 instead of 101 on HTTP/2
|
|
850
|
+
// WebSocket upgrades, which breaks browser-based flows (e.g. QA proofs).
|
|
848
851
|
const host =
|
|
849
|
-
flag('host') ||
|
|
852
|
+
flag('host') ||
|
|
853
|
+
process.env.TUNNEL_SERVER_URL ||
|
|
854
|
+
'https://volter-tunnel.aaron-0ed.workers.dev';
|
|
850
855
|
const secret = process.env.TUNNEL_SECRET;
|
|
851
856
|
const tunnelId = flag('tunnel-id');
|
|
852
857
|
const authNotRequired = args.includes('--auth-not-required');
|
package/package.json
CHANGED