diff --git a/packages/astro/src/core/app/node.ts b/packages/astro/src/core/app/node.ts index 3ad965cd08..ff80c4e14e 100644 --- a/packages/astro/src/core/app/node.ts +++ b/packages/astro/src/core/app/node.ts @@ -87,8 +87,7 @@ export class NodeApp extends App { const portInHostname = typeof hostname === 'string' && /:\d+$/.test(hostname); const hostnamePort = portInHostname ? hostname : `${hostname}${port ? `:${port}` : ''}`; - - + const url = `${protocol}://${hostnamePort}${req.url}`; const options: RequestInit = { method: req.method || 'GET',