feat(desktop): add Tauri updater (GitHub Releases), updater UI button, hide PowerShell windows; fix Windows inventory arrays and activation; improve metrics parsing; branding rename to Raven across app; avoid localhost fallback in auth-server; inject APP_URL/AUTH_URL in stack
This commit is contained in:
parent
eb5f39100f
commit
418599ef62
18 changed files with 127 additions and 34 deletions
|
|
@ -24,7 +24,14 @@ async function buildRequest() {
|
|||
headerList.get("x-client-ip") ||
|
||||
undefined
|
||||
|
||||
return new Request(env.BETTER_AUTH_URL ?? "http://localhost:3000", {
|
||||
// Evitar fallback para localhost em produção: tenta BETTER_AUTH_URL,
|
||||
// depois NEXT_PUBLIC_APP_URL e, por fim, o host do próprio request.
|
||||
const forwardedProto = headerList.get("x-forwarded-proto")
|
||||
const forwardedHost = headerList.get("x-forwarded-host") ?? headerList.get("host")
|
||||
const requestOrigin = forwardedProto && forwardedHost ? `${forwardedProto}://${forwardedHost}` : undefined
|
||||
const baseUrl = env.BETTER_AUTH_URL || env.NEXT_PUBLIC_APP_URL || requestOrigin || "http://localhost:3000"
|
||||
|
||||
return new Request(baseUrl, {
|
||||
headers: {
|
||||
cookie: cookieHeader,
|
||||
"user-agent": userAgent,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue