diff options
-rw-r--r-- | packages/astro/src/vite-plugin-astro-server/index.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/astro/src/vite-plugin-astro-server/index.ts b/packages/astro/src/vite-plugin-astro-server/index.ts index b3af040b0..5ab23e809 100644 --- a/packages/astro/src/vite-plugin-astro-server/index.ts +++ b/packages/astro/src/vite-plugin-astro-server/index.ts @@ -301,8 +301,10 @@ function isRedirect(statusCode: number) { } function throwIfRedirectNotAllowed(response: Response, config: AstroConfig) { - if(config.output !== 'server' && isRedirect(response.status)) { - throw new Error(`Redirects are only available when using output: 'server'. Update your Astro config if you need SSR features.`); + if (config.output !== 'server' && isRedirect(response.status)) { + throw new Error( + `Redirects are only available when using output: 'server'. Update your Astro config if you need SSR features.` + ); } } |