diff --git a/packages/astro/src/core/create-vite.ts b/packages/astro/src/core/create-vite.ts index e20409e15..4ba5a7754 100644 --- a/packages/astro/src/core/create-vite.ts +++ b/packages/astro/src/core/create-vite.ts @@ -67,8 +67,8 @@ export async function createVite(inlineConfig: ViteConfigWithSSR, { astroConfig, }, fs: { // Allow serving files from one level up to the project root - allow: ['..'] - } + allow: ['..'], + }, }, // Note: SSR API is in beta (https://vitejs.dev/guide/ssr.html) ssr: { diff --git a/packages/astro/src/runtime/server/hydration.ts b/packages/astro/src/runtime/server/hydration.ts index 089b68737..f056166d1 100644 --- a/packages/astro/src/runtime/server/hydration.ts +++ b/packages/astro/src/runtime/server/hydration.ts @@ -5,7 +5,7 @@ import serialize from 'serialize-javascript'; // Serializes props passed into a component so that they can be reused during hydration. export function serializeProps(value: any) { - return serialize(value) + return serialize(value); } const HydrationDirectives = ['load', 'idle', 'media', 'visible', 'only'];