This commit is contained in:
Benjamin Toby 2026-04-15 16:09:07 +01:00
parent 938411653d
commit a5f25d522e
3 changed files with 11 additions and 1 deletions

View File

@ -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;

View File

@ -1,6 +1,6 @@
{
"name": "@moduletrace/bunext",
"version": "1.0.80",
"version": "1.0.81",
"main": "dist/index.js",
"module": "index.ts",
"dependencies": {

View File

@ -44,6 +44,12 @@ export default async function grabPageComponent(
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: BunxRouteParams | undefined = undefined;
try {