mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-27 01:39:16 +01:00
7 lines
186 B
TypeScript
7 lines
186 B
TypeScript
import { NextRequest } from 'next/server';
|
|
|
|
export const getUrl = (req: NextRequest) => {
|
|
const protocol = req.nextUrl.protocol;
|
|
return protocol + '//' + req.headers.get('host');
|
|
};
|