🐛 Issue with middleware redirect in docker

This commit is contained in:
Meier Lukas committed 2023-08-24 21:37:39 +02:00
1 parent 8adb05100b
commit cdd710455f
3 files changed
+10 -5

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
import { NextRequest } from 'next/server';
export const getUrl = (req: NextRequest) => {
const protocol = req.nextUrl.protocol;
return protocol + '//' + req.headers.get('host');
};