Update Astro configuration to use Fastify adapter and include prefetch integration

- Replaced the Node adapter with Fastify for improved performance.
- Added the @astrojs/prefetch integration to enhance resource loading.
- Updated server settings to adjust logging level and minification options.
- Modified package.json to include new dependencies for Fastify and prefetch.
This commit is contained in:
2025-07-02 22:52:53 +02:00
parent 2cb5f4bf24
commit efdd0c28d4
4 changed files with 756 additions and 4 deletions

View File

@@ -9,9 +9,9 @@
},
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"start": "node server.js",
"astro": "astro",
"check": "npm run check:astro && npm run check:eslint && npm run check:prettier",
"check:astro": "astro check",
@@ -23,6 +23,7 @@
},
"dependencies": {
"@astrojs/node": "^9.2.2",
"@astrojs/prefetch": "^0.4.1",
"@astrojs/react": "^4.2.0",
"@astrojs/rss": "^4.0.11",
"@astrojs/sitemap": "^3.2.1",
@@ -36,8 +37,10 @@
"astro": "^5.2.3",
"astro-embed": "^0.9.0",
"astro-icon": "^1.1.5",
"compression": "^1.7.4",
"csrf": "^3.1.0",
"dotenv": "^16.4.7",
"express": "^4.19.2",
"form-data": "^4.0.2",
"jsonwebtoken": "^9.0.2",
"limax": "4.1.0",