[ci] format
This commit is contained in:
parent
500acb3c11
commit
e78bb2f866
1 changed files with 4 additions and 2 deletions
|
@ -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.`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue