This commit is contained in:
2026-04-15 16:09:07 +01:00
parent 938411653d
commit a5f25d522e
3 changed files with 11 additions and 1 deletions
@@ -19,6 +19,10 @@ export default async function grabPageComponent(params) {
const url = req?.url ? new URL(req.url) : undefined;
const router = global.ROUTER;
const is_dev = isDevelopment();
const forwarded_proto = req?.headers.get("x-forwarded-proto");
if (url && forwarded_proto) {
url.protocol = forwarded_proto;
}
let routeParams = undefined;
try {
routeParams = req ? await grabRouteParams({ req }) : undefined;