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 { defineConfig } from 'astro/config';
|
||||||
|
import tailwindcss from '@tailwindcss/vite';
|
||||||
|
|
||||||
// For SSR with API routes
|
// https://astro.build/config
|
||||||
import node from '@astrojs/node';
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: 'server',
|
output: 'static',
|
||||||
adapter: node({ mode: 'standalone' }),
|
|
||||||
build: {
|
build: {
|
||||||
inlineStylesheets: 'always',
|
inlineStylesheets: 'always',
|
||||||
},
|
},
|
||||||
vite: {
|
vite: {
|
||||||
|
plugins: [tailwindcss()],
|
||||||
preview: {
|
preview: {
|
||||||
host: true, // Allow any host
|
host: true,
|
||||||
port: 80,
|
port: 80,
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
host: true, // Allow any host
|
host: true,
|
||||||
port: 80,
|
port: 80,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user