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.
This commit is contained in:
2025-07-02 23:01:32 +02:00
parent efdd0c28d4
commit 966d946c77

View File

@@ -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,