a tool for shared writing and social publishing
at 67e93ac8b4f2571dbefaba9f3f0bdcf96d3eb8dd 7 lines 284 B view raw
1import { headers } from "next/headers"; 2export async function getCurrentDeploymentDomain() { 3 const headersList = await headers(); 4 const hostname = headersList.get("x-forwarded-host"); 5 let protocol = headersList.get("x-forwarded-proto"); 6 return `${protocol}://${hostname}/`; 7}