- Install better-sqlite3 and @astrojs/node adapter - Update consent API to use SQLite database - Add DELETE endpoint for consent logs - Update admin consent-logs page with full UI (stats, table, export, delete) - Add sessionId to consent tracking - Admin password: Coolm@n1234mo Note: Database stored at data/consent.db (gitignored)
35 lines
654 B
JavaScript
35 lines
654 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import tailwind from '@astrojs/tailwind';
|
|
import sitemap from '@astrojs/sitemap';
|
|
import node from '@astrojs/node';
|
|
|
|
export default defineConfig({
|
|
site: 'https://dealplustech.co.th',
|
|
integrations: [
|
|
tailwind({
|
|
applyBaseStyles: true,
|
|
}),
|
|
sitemap(),
|
|
],
|
|
adapter: node({
|
|
mode: 'standalone',
|
|
}),
|
|
i18n: {
|
|
defaultLocale: 'th',
|
|
locales: ['th'],
|
|
routing: {
|
|
prefixDefaultLocale: false,
|
|
redirectToDefaultLocale: false,
|
|
},
|
|
},
|
|
compressHTML: true,
|
|
build: {
|
|
inlineStylesheets: 'auto',
|
|
},
|
|
vite: {
|
|
build: {
|
|
cssMinify: true,
|
|
},
|
|
},
|
|
});
|