From 966d946c77184b259e535d01377caa05773abfa0 Mon Sep 17 00:00:00 2001 From: Richard Bergsma Date: Wed, 2 Jul 2025 23:01:32 +0200 Subject: [PATCH] Update Astro configuration to use Node adapter and adjust server settings - Replaced Fastify adapter with Node for standalone mode. - Maintained the inclusion of the @astrojs/prefetch integration for resource loading optimization. --- astro.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index bffd145..0986baa 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -12,7 +12,7 @@ import icon from 'astro-icon'; import compress from 'astro-compress'; import type { AstroIntegration } from 'astro'; import astrowind from './vendor/integration'; -import fastify from '@astrojs/fastify'; +import node from '@astrojs/node'; import prefetch from '@astrojs/prefetch'; import { readingTimeRemarkPlugin, responsiveTablesRehypePlugin, lazyImagesRehypePlugin } from './src/utils/frontmatter'; @@ -25,7 +25,7 @@ const whenExternalScripts = (items: (() => AstroIntegration) | (() => AstroInteg export default defineConfig({ output: 'server', - adapter: fastify(), + adapter: node({ mode: 'standalone' }), server: { port: 3000,