diff options
-rw-r--r-- | packages/astro/src/core/app/node.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/astro/src/core/app/node.ts b/packages/astro/src/core/app/node.ts index 3ad965cd0..ff80c4e14 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', |