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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user