From 3f6e77d62223b5e63e44e37294758a4eb4259a2a Mon Sep 17 00:00:00 2001 From: Kunthawat Date: Thu, 12 Mar 2026 14:10:36 +0700 Subject: [PATCH] fix: Remove SSR adapter - use static build only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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) --- astro.config.mjs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 96d4996ec..d9468c610 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -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, }, },