summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2022-10-18 20:11:38 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-10-18 20:11:38 +0000
commite78bb2f866b7934a44baffddbb224793d5b3a99d (patch)
tree3513093360e56cf45a28b71ab4cd1e89464435b1
parent500acb3c117070ee5838a8b567e9bdcf68703227 (diff)
downloadastro-e78bb2f866b7934a44baffddbb224793d5b3a99d.tar.gz
astro-e78bb2f866b7934a44baffddbb224793d5b3a99d.tar.zst
astro-e78bb2f866b7934a44baffddbb224793d5b3a99d.zip
[ci] format
-rw-r--r--packages/astro/src/vite-plugin-astro-server/index.ts6
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.`
+ );
}
}