build: server bundle and both apps at version 1.142

Rebuilds apps/api/release, apps/user-app/dist and apps/user-app-v2/dist
from b3dae57 (login code without the ~15s wait, no wage-quote loop).
The admin panel is unchanged and not rebuilt.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
s.esmaeili
2026-10-10 16:59:35 +03:30
co-authored by Cursor
parent b3dae57f0b
commit 48da4cb4c7
71 changed files with 138 additions and 107 deletions
+26 -11
View File
@@ -87585,27 +87585,42 @@ var require_relay_driver = __commonJS({
}
var publicIpv4 = null;
var PUBLIC_IP_SERVICES = ["https://api.ipify.org", "https://ifconfig.me/ip", "https://icanhazip.com"];
var LOOKUP_TIMEOUT_MS = 3e3;
var FAILED_LOOKUP_RETRY_MS = 10 * 60 * 1e3;
var lookup = null;
var lookupFailedAt = 0;
async function lookupPublicIpv4() {
const attempts = PUBLIC_IP_SERVICES.map(async (url) => {
const reply = await (0, sms_driver_1.postWithTimeout)(url, {}, null, LOOKUP_TIMEOUT_MS, "GET");
const ip = reply.body.trim();
if (reply.ok && /^\d{1,3}(\.\d{1,3}){3}$/.test(ip) && !isPrivateIpv4(ip))
return ip;
throw new Error("not a public IPv4");
});
try {
publicIpv4 = await Promise.any(attempts);
} catch {
lookupFailedAt = Date.now();
}
}
async function resolveRelayHost() {
if ((0, env_12.envOrNull)("SMS_RELAY_HOST") || publicIpv4)
return relayConfig().host;
const own = serverIpv4();
if (!isPrivateIpv4(own))
return own;
for (const url of PUBLIC_IP_SERVICES) {
try {
const reply = await (0, sms_driver_1.postWithTimeout)(url, {}, null, 5e3, "GET");
const ip = reply.body.trim();
if (reply.ok && /^\d{1,3}(\.\d{1,3}){3}$/.test(ip) && !isPrivateIpv4(ip)) {
publicIpv4 = ip;
break;
}
} catch {
}
}
if (Date.now() - lookupFailedAt < FAILED_LOOKUP_RETRY_MS)
return relayConfig().host;
lookup ??= lookupPublicIpv4().finally(() => {
lookup = null;
});
await lookup;
return relayConfig().host;
}
function resetRelayHostCache() {
publicIpv4 = null;
lookup = null;
lookupFailedAt = 0;
}
function relayConfig() {
return {