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:
@@ -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()]
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user