@deslop/deploy 0.1.1317 → 0.1.1318
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/server.js +6 -1
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -108432,6 +108432,7 @@ const updateRelease = fnUntraced(function* (name) {
|
|
|
108432
108432
|
});
|
|
108433
108433
|
// ../../packages/runtime/src/server/cli.ts
|
|
108434
108434
|
const DEFAULT_HOST = "127.0.0.1";
|
|
108435
|
+
const TailnetSelf = Struct$2({ Self: Struct$2({ DNSName: String$6 }) });
|
|
108435
108436
|
const SETTINGS = {
|
|
108436
108437
|
DOMAIN: {
|
|
108437
108438
|
description: "Parent domain for Deslop apps; without it every caller is the developer",
|
|
@@ -108447,8 +108448,12 @@ const SETTINGS = {
|
|
|
108447
108448
|
const configProvider = fnUntraced(function* (given, defaultPort) {
|
|
108448
108449
|
const port = given["PORT"] ?? `${defaultPort}`;
|
|
108449
108450
|
const name = yield* appName;
|
|
108451
|
+
const tailnet = yield* pipe(executeProcess("tailscale", ["status", "--json"]), flatMap$3(decodeUnknownEffect(fromJsonString(TailnetSelf))), map$7((status) => replace(/\.$/u, "")(status.Self.DNSName)), timeout("5 seconds"), option$1);
|
|
108450
108452
|
const urls = match$8(fromUndefinedOr(given["DOMAIN"]), {
|
|
108451
|
-
onNone: () => ({ APP_URL:
|
|
108453
|
+
onNone: () => ({ APP_URL: pipe(tailnet, filter$7(isNonEmpty$1), match$8({
|
|
108454
|
+
onNone: () => `http://localhost:${port}`,
|
|
108455
|
+
onSome: (host) => `https://${host}:${port}`
|
|
108456
|
+
})) }),
|
|
108452
108457
|
onSome: (domain) => ({
|
|
108453
108458
|
APP_URL: `https://${name}.${domain}`,
|
|
108454
108459
|
AUTH_URL: `https://auth.${domain}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/deploy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1318",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=26"
|
|
42
42
|
},
|
|
43
|
-
"fingerprint": "
|
|
43
|
+
"fingerprint": "74803ea34f7f0bae3f78d30d1b3e51478a03d46be489ff707a0f218dc388e63c"
|
|
44
44
|
}
|