diff --git a/packages/astro/src/core/app/index.ts b/packages/astro/src/core/app/index.ts index 54fdc56c2..69f8f73c4 100644 --- a/packages/astro/src/core/app/index.ts +++ b/packages/astro/src/core/app/index.ts @@ -253,7 +253,13 @@ export class App { page.onRequest as MiddlewareResponseHandler, apiContext, () => { - return renderPage({ mod, renderContext, env: this.#env, cookies: apiContext.cookies, isCompressHTML }); + return renderPage({ + mod, + renderContext, + env: this.#env, + cookies: apiContext.cookies, + isCompressHTML, + }); } ); } else { @@ -262,7 +268,7 @@ export class App { renderContext, env: this.#env, cookies: apiContext.cookies, - isCompressHTML + isCompressHTML, }); } Reflect.set(request, responseSentSymbol, true);