From 49e3f3e9ef8098af096b8d84989d4faa7e15ece5 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Mon, 1 Jul 2024 13:56:26 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/render-context.ts | 28 +++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/astro/src/core/render-context.ts b/packages/astro/src/core/render-context.ts index d622bbc8cd..c7b339f1a2 100644 --- a/packages/astro/src/core/render-context.ts +++ b/packages/astro/src/core/render-context.ts @@ -238,20 +238,20 @@ export class RenderContext { async #executeRewrite(reroutePayload: RewritePayload) { this.pipeline.logger.debug('router', 'Calling rewrite: ', reroutePayload); if (!this.pipeline.manifest.rewritingEnabled) { - this.pipeline.logger.error( - 'router', - 'The rewrite API is experimental. To use this feature, add the `rewriting` flag to the `experimental` object in your Astro config.' - ); - return new Response( - 'The rewrite API is experimental. To use this feature, add the `rewriting` flag to the `experimental` object in your Astro config.', - { - status: 500, - statusText: - 'The rewrite API is experimental. To use this feature, add the `rewriting` flag to the `experimental` object in your Astro config.', - } - ); - } - const [routeData, component, newURL] = await this.pipeline.tryRewrite( + this.pipeline.logger.error( + 'router', + 'The rewrite API is experimental. To use this feature, add the `rewriting` flag to the `experimental` object in your Astro config.' + ); + return new Response( + 'The rewrite API is experimental. To use this feature, add the `rewriting` flag to the `experimental` object in your Astro config.', + { + status: 500, + statusText: + 'The rewrite API is experimental. To use this feature, add the `rewriting` flag to the `experimental` object in your Astro config.', + } + ); + } + const [routeData, component, newURL] = await this.pipeline.tryRewrite( reroutePayload, this.request, this.originalRoute