diff --git a/packages/astro/src/core/app/index.ts b/packages/astro/src/core/app/index.ts index fc03d333c..d8b003b52 100644 --- a/packages/astro/src/core/app/index.ts +++ b/packages/astro/src/core/app/index.ts @@ -83,7 +83,7 @@ export class App { } // Use the 404 status code for 404.astro components - if(routeData.route === '/404') { + if (routeData.route === '/404') { defaultStatus = 404; } diff --git a/packages/astro/src/core/app/node.ts b/packages/astro/src/core/app/node.ts index 95e47a52c..801ede4c9 100644 --- a/packages/astro/src/core/app/node.ts +++ b/packages/astro/src/core/app/node.ts @@ -44,10 +44,16 @@ export class NodeApp extends App { }); return reqBodyComplete.then(() => { - return super.render(req instanceof Request ? req : createRequestFromNodeRequest(req, body), routeData); + return super.render( + req instanceof Request ? req : createRequestFromNodeRequest(req, body), + routeData + ); }); } - return super.render(req instanceof Request ? req : createRequestFromNodeRequest(req), routeData); + return super.render( + req instanceof Request ? req : createRequestFromNodeRequest(req), + routeData + ); } }