// https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ compatibilityDate: '2025-05-15', app: { head: { title: '闽南文化生态保护区(厦门市)', viewport: 'width=device-width, initial-scale=1, maximum-scale=1', htmlAttrs: { lang: 'zh', }, link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, ] } }, devtools: { enabled: true }, srcDir: 'src/', modules: ['@pinia/nuxt', '@ant-design-vue/nuxt'], components: [ { path: '~/components', pathPrefix: false, extensions: ['.vue'], } ], build: { transpile: ['@imengyu/vue-scroll-rect'], }, routeRules: { '/': { swr: 1800 }, '/about/': { swr: 86400 }, '/communicate/': { swr: 86400 }, '/fusion/': { swr: 86400 }, '/inheritor/': { swr: 3600 }, '/introduction/': { swr: 3600 }, '/news/': { swr: 3600 }, '/research/': { swr: 86400 }, '/introduction/**': { swr: true }, '/communicate/**': { swr: true }, '/fusion/**': { swr: true }, '/inheritor/**': { swr: true }, '/news/**': { swr: true }, '/research/**': { swr: true }, '/village/**': { swr: true }, '/inheritor/submit': { ssr: false }, } })