// https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ 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' }, { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' }, { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' }, { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' } ] } }, devtools: { enabled: true }, modules: ['@pinia/nuxt', '@ant-design-vue/nuxt'], components: [ { path: '~/components', pathPrefix: false, extensions: ['.vue'], } ], build: { transpile: [ '@imengyu/vue-scroll-rect', '@imengyu/imengyu-utils', ], }, vite: { build: { minify: 'terser', terserOptions: { compress: { drop_console: true, drop_debugger: true, }, }, }, }, routeRules: { '/**': { swr: false, isr: false, headers: { 'cache-control': 'no-store, max-age=0' } }, /* '/': { swr: 1800 }, '/about/': { swr: 1800 }, '/communicate/': { swr: 1800 }, '/fusion/': { swr: 1800 }, '/inheritor/': { swr: 1800 }, '/introduction/': { swr: 1800 }, '/news/': { swr: 1800 }, '/research/': { swr: 1800 },*/ '/introduction/**': { swr: false }, '/communicate/**': { swr: false }, '/fusion/**': { swr: false }, '/inheritor/**': { swr: false }, '/news/**': { swr: false }, '/research/**': { swr: false }, '/village/**': { swr: false }, '/inheritor/submit': { ssr: false }, } })