diff options
author | 2022-08-31 20:14:25 +0000 | |
---|---|---|
committer | 2022-08-31 20:14:25 +0000 | |
commit | fa48d011098a48c1d609f6b70e6562d44c3217b5 (patch) | |
tree | de8d2ae79a3cc1feef69ca94099b2bb136939434 | |
parent | 294122b4e423107bd9d4854a266f029acbe5e293 (diff) | |
download | astro-fa48d011098a48c1d609f6b70e6562d44c3217b5.tar.gz astro-fa48d011098a48c1d609f6b70e6562d44c3217b5.tar.zst astro-fa48d011098a48c1d609f6b70e6562d44c3217b5.zip |
[ci] format
-rw-r--r-- | packages/integrations/deno/src/server.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/integrations/deno/src/server.ts b/packages/integrations/deno/src/server.ts index cf9c1cfd4..d8eb3320d 100644 --- a/packages/integrations/deno/src/server.ts +++ b/packages/integrations/deno/src/server.ts @@ -28,21 +28,21 @@ export function start(manifest: SSRManifest, options: Options) { Reflect.set(request, Symbol.for('astro.clientAddress'), ip); return await app.render(request); } - + // If the request path wasn't found in astro, // try to fetch a static file instead const url = new URL(request.url); const localPath = new URL('.' + url.pathname, clientRoot); const fileResp = await fetch(localPath.toString()); - + // If the static file can't be found if (fileResp.status == 404) { - // Render the astro custom 404 page - return await app.render(request); - - // If the static file is found + // Render the astro custom 404 page + return await app.render(request); + + // If the static file is found } else { - return fileResp; + return fileResp; } }; |