summaryrefslogtreecommitdiff
path: root/src/runtime.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime.ts')
-rw-r--r--src/runtime.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime.ts b/src/runtime.ts
index 62bbdb09c..800c4d40a 100644
--- a/src/runtime.ts
+++ b/src/runtime.ts
@@ -26,7 +26,7 @@ type LoadResultSuccess = {
contentType?: string | false;
};
type LoadResultNotFound = { statusCode: 404; error: Error };
-type LoadResultRedirect = { statusCode: 301 | 302; location: string; };
+type LoadResultRedirect = { statusCode: 301 | 302; location: string };
type LoadResultError = { statusCode: 500 } & ({ type: 'parse-error'; error: CompileError } | { type: 'unknown'; error: Error });
export type LoadResult = LoadResultSuccess | LoadResultNotFound | LoadResultRedirect | LoadResultError;
@@ -45,7 +45,7 @@ async function load(config: RuntimeConfig, rawPathname: string | undefined): Pro
info(logging, 'access', reqPath);
const searchResult = searchForPage(fullurl, astroRoot);
- if(searchResult.statusCode === 404) {
+ if (searchResult.statusCode === 404) {
try {
const result = await frontendSnowpack.loadUrl(reqPath);
@@ -65,7 +65,7 @@ async function load(config: RuntimeConfig, rawPathname: string | undefined): Pro
}
}
- if(searchResult.statusCode === 301) {
+ if (searchResult.statusCode === 301) {
return { statusCode: 301, location: searchResult.pathname };
}