| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- import { defineNuxtConfig } from "nuxt/config";
- // 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' },
- ]
- }
- },
- css: ['bootstrap/dist/css/bootstrap.min.css'],
- devtools: { enabled: true },
- srcDir: 'src/',
- modules: ['@pinia/nuxt', '@ant-design-vue/nuxt', '@nuxt/icon'],
- components: [
- {
- path: '~/components',
- pathPrefix: false,
- extensions: ['.vue'],
- }
- ],
- icon: {
- provider: 'iconify',
- serverBundle: false,
- },
- 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 },
- '/introduction/**': { swr: true },
- '/inheritor/submit': { swr: false },
- }
- })
|