diff --git a/packages/astro/src/runtime/server/render/common.ts b/packages/astro/src/runtime/server/render/common.ts index 421546a46..3aac428cf 100644 --- a/packages/astro/src/runtime/server/render/common.ts +++ b/packages/astro/src/runtime/server/render/common.ts @@ -47,7 +47,7 @@ export function stringifyChunk(result: SSRResult, chunk: string | RenderInstruct export class HTMLParts { public parts: string; constructor() { - this.parts = '' + this.parts = ''; } append(part: string | HTMLBytes | RenderInstruction, result: SSRResult) { if (ArrayBuffer.isView(part)) { diff --git a/packages/astro/test/benchmark/simple/astro.config.mjs b/packages/astro/test/benchmark/simple/astro.config.mjs index da503f3ba..ec4a0bec0 100644 --- a/packages/astro/test/benchmark/simple/astro.config.mjs +++ b/packages/astro/test/benchmark/simple/astro.config.mjs @@ -3,5 +3,5 @@ import nodejs from '@astrojs/node'; export default defineConfig({ output: 'server', - adapter: nodejs() + adapter: nodejs(), }); diff --git a/packages/astro/test/benchmark/simple/server.mjs b/packages/astro/test/benchmark/simple/server.mjs index e5844d60c..3fde151e1 100644 --- a/packages/astro/test/benchmark/simple/server.mjs +++ b/packages/astro/test/benchmark/simple/server.mjs @@ -2,8 +2,8 @@ import http from 'http'; import { handler } from './dist/server/entry.mjs'; const listener = (req, res) => { - handler(req, res, err => { - if(err) { + handler(req, res, (err) => { + if (err) { res.writeHead(500); res.end(err.toString()); } else { diff --git a/packages/astro/test/benchmark/simple/src/components/Layout.astro b/packages/astro/test/benchmark/simple/src/components/Layout.astro index c8a65f26e..7224ba686 100644 --- a/packages/astro/test/benchmark/simple/src/components/Layout.astro +++ b/packages/astro/test/benchmark/simple/src/components/Layout.astro @@ -1,6 +1,6 @@ - { Astro.props.title } + {Astro.props.title} diff --git a/packages/astro/test/benchmark/simple/src/pages/index.astro b/packages/astro/test/benchmark/simple/src/pages/index.astro index ee287144f..932ce3ea8 100644 --- a/packages/astro/test/benchmark/simple/src/pages/index.astro +++ b/packages/astro/test/benchmark/simple/src/pages/index.astro @@ -5,5 +5,5 @@ const name = 'world';

index page

-

Hello { name }

+

Hello {name}