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:
Kunthawat
2026-03-12 14:10:36 +07:00
parent 11fef1f395
commit 3f6e77d622

View File

@@ -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,
},
},