Co-authored-by: nicktrn <[email protected]> Co-authored-by: tedspare <[email protected]> Co-authored-by: Alex van Andel <[email protected]>
8 lines
205 B
TypeScript
8 lines
205 B
TypeScript
import type { NextRequest } from "next/server";
|
|
|
|
const getHostFromHeaders = (headers: NextRequest["headers"]): string => {
|
|
return `https://${headers.get("host")}`;
|
|
};
|
|
|
|
export default getHostFromHeaders;
|