- 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.
32 lines
592 B
JavaScript
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,
|
|
},
|
|
},
|
|
});
|