fix: Remove SSR adapter - use static build only
- Removed @astrojs/node import (causes build failure) - Changed output: 'server' → 'static' - Works with Docker build (no dependency conflicts) - All pages still render correctly - Consent works with localStorage (API routes not supported)
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
// @ts-check
|
||||
import { defineConfig } from 'astro/config';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
|
||||
// For SSR with API routes
|
||||
import node from '@astrojs/node';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
output: 'server',
|
||||
adapter: node({ mode: 'standalone' }),
|
||||
output: 'static',
|
||||
build: {
|
||||
inlineStylesheets: 'always',
|
||||
},
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
preview: {
|
||||
host: true, // Allow any host
|
||||
host: true,
|
||||
port: 80,
|
||||
},
|
||||
server: {
|
||||
host: true, // Allow any host
|
||||
host: true,
|
||||
port: 80,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user