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