mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-23 07:41:50 +00:00
14 lines
427 B
TypeScript
14 lines
427 B
TypeScript
import { getBrowserTargetForRequest } from "@app/lib/getBrowserTargetForRequest";
|
|
import type { Metadata } from "next";
|
|
|
|
export async function generateBrowserGatewayMetadata(
|
|
protocol: "SSH" | "RDP" | "VNC"
|
|
): Promise<Metadata> {
|
|
const { target } = await getBrowserTargetForRequest();
|
|
return {
|
|
title: target?.name
|
|
? `${protocol} - ${target.name}`
|
|
: `${protocol} - Pangolin`
|
|
};
|
|
}
|