diff options
author | 2022-10-18 20:11:38 +0000 | |
---|---|---|
committer | 2022-10-18 20:11:38 +0000 | |
commit | e78bb2f866b7934a44baffddbb224793d5b3a99d (patch) | |
tree | 3513093360e56cf45a28b71ab4cd1e89464435b1 | |
parent | 500acb3c117070ee5838a8b567e9bdcf68703227 (diff) | |
download | astro-e78bb2f866b7934a44baffddbb224793d5b3a99d.tar.gz astro-e78bb2f866b7934a44baffddbb224793d5b3a99d.tar.zst astro-e78bb2f866b7934a44baffddbb224793d5b3a99d.zip |
[ci] format
-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.` + ); } } |