export default defineNuxtConfig({ compatibilityDate: '2026-08-10', devtools: { enabled: false }, css: ['~/assets/css/main.scss'], app: { head: { htmlAttrs: { lang: 'zh-CN' }, meta: [ { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { name: 'theme-color', content: '#f5f7fa' }, ], link: [{ rel: 'icon', type: 'image/png', href: '/images/brand-logo-v2.png' }], }, pageTransition: { name: 'page', mode: 'out-in' }, }, runtimeConfig: { sessionPassword: '', sessionCookieSecure: false, databasePath: './data/db/huiyu.sqlite', initialAdminUsername: 'admin', initialAdminPassword: '', public: { siteUrl: 'http://localhost:3000', }, }, nitro: { compressPublicAssets: true, externals: { external: ['better-sqlite3'], }, }, routeRules: { '/images/**': { headers: { 'Cache-Control': 'public, max-age=31536000, immutable' } }, '/admin/**': { ssr: false, headers: { 'X-Robots-Tag': 'noindex, nofollow', 'Cache-Control': 'no-store' } }, '/api/admin/**': { headers: { 'Cache-Control': 'no-store' } }, '/api/auth/**': { headers: { 'Cache-Control': 'no-store' } }, }, typescript: { strict: true, typeCheck: false, }, })