| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- 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' },
- ]
- }
- },
- devtools: { enabled: false },
- srcDir: 'src/',
- ignore: [
- 'src/pages/**/components/**',
- ],
- modules: ['@pinia/nuxt', '@ant-design-vue/nuxt', '@nuxt/icon', '@nuxtjs/tailwindcss'],
- components: [
- {
- path: '~/components',
- pathPrefix: false,
- extensions: ['.vue'],
- }
- ],
- icon: {
- provider: 'iconify',
- serverBundle: false,
- },
- tailwindcss: {
- cssPath: '~/assets/css/tailwind.css',
- },
- build: {
- transpile: [
- '@imengyu/vue-scroll-rect',
- '@imengyu/imengyu-utils',
- '@imengyu/js-request-transform',
- ],
- },
- 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' } },
- /* '/uploads/**': {
- proxy: 'https://xmswhycbhzx.cn/uploads/**'
- }, */
- /*
- '/': { swr: 1800 },
- '/about/': { swr: 1800 },
- '/channel/**': { swr: 1800 },
- '/page/submit': {swr: 1800 },
- '/search/**': { swr: false },*/
- }
- })
|