diff --git a/packages/astro/src/container/pipeline.ts b/packages/astro/src/container/pipeline.ts index 8b18e8dffc7e..d7ed57088d25 100644 --- a/packages/astro/src/container/pipeline.ts +++ b/packages/astro/src/container/pipeline.ts @@ -13,7 +13,7 @@ import { createModuleScriptElement, createStylesheetElementSet, } from '../core/render/ssr-element.js'; -import {default404Page, DEFAULT_404_ROUTE} from '../core/routing/astro-designed-error-pages.js'; +import { DEFAULT_404_ROUTE, default404Page } from '../core/routing/astro-designed-error-pages.js'; export class ContainerPipeline extends Pipeline { /** @@ -70,7 +70,10 @@ export class ContainerPipeline extends Pipeline { return { links, styles, scripts }; } - async tryRewrite(payload: RewritePayload, request: Request): Promise<[RouteData, ComponentInstance, URL]> { + async tryRewrite( + payload: RewritePayload, + request: Request + ): Promise<[RouteData, ComponentInstance, URL]> { let foundRoute: RouteData | undefined; // options.manifest is the actual type that contains the information let finalUrl: URL | undefined = undefined; diff --git a/packages/astro/src/core/render-context.ts b/packages/astro/src/core/render-context.ts index 18a47c532e16..ff25cef28f71 100644 --- a/packages/astro/src/core/render-context.ts +++ b/packages/astro/src/core/render-context.ts @@ -358,11 +358,14 @@ export class RenderContext { slotValues: Record | null ): AstroGlobal { let astroPagePartial; - // During rewriting, we must recompute the Astro global, because we need to purge the previous params/props/etc. + // During rewriting, we must recompute the Astro global, because we need to purge the previous params/props/etc. if (this.isRewriting) { - astroPagePartial = this.#astroPagePartial = this.createAstroPagePartial(result, astroStaticPartial); + astroPagePartial = this.#astroPagePartial = this.createAstroPagePartial( + result, + astroStaticPartial + ); } else { - // Create page partial with static partial so they can be cached together. + // Create page partial with static partial so they can be cached together. astroPagePartial = this.#astroPagePartial ??= this.createAstroPagePartial( result, astroStaticPartial