Update Astro configuration for SSR support and refactor homepage layout. Added server adapter and standalone mode. Replaced Header component with a custom header, updated page titles, and improved styling for navigation and footer.

This commit is contained in:
2025-06-18 21:43:11 +02:00
parent ca04704a0b
commit bc59d2ca67
3 changed files with 481 additions and 15 deletions

View File

@@ -2,14 +2,22 @@
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
import react from '@astrojs/react';
import node from '@astrojs/node'; // ✅ Required for SSR build
// https://astro.build/config
export default defineConfig({
output: 'server', // ✅ Use server mode to generate dist/server/entry.mjs
adapter: node({
mode: 'standalone', // ✅ Ensures entry.mjs includes everything needed
}),
integrations: [
react()
],
vite: {
plugins: [tailwindcss()]
},
integrations: [react()]
}
});