agent v0.3.15: mode proxy auto/manuel, correction auto-update et conservation systray, animation UI update
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card";
|
||||
import { getAgentVersionInfo } from "@/lib/agent-version";
|
||||
import { getAgentVersionInfo, getBaseUrlFromRequest } from "@/lib/agent-version";
|
||||
import { headers } from "next/headers";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export default function DownloadPage() {
|
||||
const info = getAgentVersionInfo();
|
||||
export default async function DownloadPage() {
|
||||
const h = await headers();
|
||||
const proto = h.get("x-forwarded-proto") ?? "https";
|
||||
const host = h.get("x-forwarded-host") ?? h.get("host") ?? "";
|
||||
const baseUrl = host ? `${proto}://${host}` : undefined;
|
||||
const info = getAgentVersionInfo(baseUrl);
|
||||
const { version, downloadUrls } = info;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user