@arkstack/driver-h3 0.17.17 → 0.17.18
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/dist/index.js +7 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -185,6 +185,7 @@ var H3Driver = class extends ArkstackKitDriver {
|
|
|
185
185
|
const host = env("APP_HOST", env("HOST", "0.0.0.0"));
|
|
186
186
|
const secure = env("APP_SECURE", false) === true;
|
|
187
187
|
const tunneled = env("TUNNEL", false);
|
|
188
|
+
const tunnelUrl = env("TUNNEL_URL");
|
|
188
189
|
const scheme = secure ? "https" : "http";
|
|
189
190
|
const tls = secure ? await devTlsCredentials() : void 0;
|
|
190
191
|
await serve(app, {
|
|
@@ -200,14 +201,18 @@ var H3Driver = class extends ArkstackKitDriver {
|
|
|
200
201
|
} : {}
|
|
201
202
|
}).ready();
|
|
202
203
|
let log = startupLogLines(scheme, host, port);
|
|
203
|
-
if (
|
|
204
|
+
if (tunnelUrl) {
|
|
205
|
+
log = log.concat(Logger.log([["Traffic has been tunnelled to", "white"], [tunnelUrl, "green"]], " ", false));
|
|
206
|
+
this.tunnel_url = tunnelUrl;
|
|
207
|
+
globalThis.tunnelUrl = () => tunnelUrl;
|
|
208
|
+
} else if (tunneled === true) {
|
|
204
209
|
const url = (await ngrok.forward({
|
|
205
210
|
addr: port,
|
|
206
211
|
authtoken: env("NGROK_AUTHTOKEN"),
|
|
207
212
|
domain: env("NGROK_DOMAIN")
|
|
208
213
|
})).url();
|
|
209
214
|
if (url) {
|
|
210
|
-
log = log.concat(Logger.log([["
|
|
215
|
+
log = log.concat(Logger.log([["Traffic has been tunnelled to", "white"], [url, "green"]], " ", false));
|
|
211
216
|
process.env.TUNNEL_URL = url;
|
|
212
217
|
this.tunnel_url = url;
|
|
213
218
|
globalThis.tunnelUrl = () => url;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/driver-h3",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "H3 driver for Arkstack, providing H3-based runtime integration for the framework.",
|
|
6
6
|
"homepage": "https://arkstack.toneflix.net",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"@resora/plugin-clear-router": "^1.0.72",
|
|
42
42
|
"clear-router": "^2.9.3",
|
|
43
43
|
"resora": "^1.3.34",
|
|
44
|
-
"@arkstack/contract": "^0.17.
|
|
45
|
-
"@arkstack/http": "^0.17.
|
|
44
|
+
"@arkstack/contract": "^0.17.18",
|
|
45
|
+
"@arkstack/http": "^0.17.18"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"h3": "^2.0.1-rc.22",
|
|
49
|
-
"@arkstack/
|
|
50
|
-
"@arkstack/
|
|
51
|
-
"@arkstack/
|
|
52
|
-
"@arkstack/inertia": "^0.17.
|
|
49
|
+
"@arkstack/auth": "^0.17.18",
|
|
50
|
+
"@arkstack/common": "^0.17.18",
|
|
51
|
+
"@arkstack/foundry": "^0.17.18",
|
|
52
|
+
"@arkstack/inertia": "^0.17.18"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@arkstack/auth": {
|