mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 17:00:54 +01:00
9 lines
332 B
TypeScript
9 lines
332 B
TypeScript
import { headers } from "next/headers";
|
|
|
|
import { extractBaseUrlFromHeaders } from "../url";
|
|
import { parseAppHrefWithVariables } from "./base";
|
|
|
|
export const parseAppHrefWithVariablesServer = <TInput extends string | null>(url: TInput): TInput => {
|
|
return parseAppHrefWithVariables(url, extractBaseUrlFromHeaders(headers()));
|
|
};
|