Files
dealplustech-astro/astro.config.mjs
Kunthawat a1c9930d49 Fix build: simplify consent API to static-compatible console logging
- Remove [sessionId].ts dynamic route (requires adapter in static mode)
- Simplify consent API to log to console only (no SQLite/better-sqlite3)
- Fix syntax error in consent-logs page (curly brace escaping)
- Consent logs page works for viewing instructions (password: Coolm@n1234mo)

Note: In static mode, API routes cannot actually handle POST requests.
For full runtime consent logging, would need hybrid/SSR deployment.
2026-04-01 15:23:54 +07:00

32 lines
592 B
JavaScript

import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';
import sitemap from '@astrojs/sitemap';
export default defineConfig({
site: 'https://dealplustech.co.th',
integrations: [
tailwind({
applyBaseStyles: true,
}),
sitemap(),
],
output: 'static',
i18n: {
defaultLocale: 'th',
locales: ['th'],
routing: {
prefixDefaultLocale: false,
redirectToDefaultLocale: false,
},
},
compressHTML: true,
build: {
inlineStylesheets: 'auto',
},
vite: {
build: {
cssMinify: true,
},
},
});