xinyang5yuan-web/nuxt.config.ts
榆钱落尽槿花稀 35b0437ddd - 注释AppHeader.vue中未使用的紧急服务链接
- 调整index.css中的多个元素的宽度、高度和边距
- 更新AppFooter.vue的布局和内容,包括地址、电话和交通信息
2025-05-20 10:21:32 +08:00

40 lines
766 B
TypeScript

// https://nuxt.com/docs/api/configuration/nuxt-config
import { defineNuxtConfig } from 'nuxt/config'
export default defineNuxtConfig({
app: {
baseURL: '/',
},
nitro: {
routeRules: {
'/**': { trailingSlash: false }
}
},
ssr: false,
css: [
'swiper/css',
'swiper/css/mousewheel',
'@/assets/css/common.scss'
],
devtools: { enabled: true },
postcss: {
plugins: {
autoprefixer: {},
tailwindcss: {},
},
},
modules: ['@pinia/nuxt', 'nuxt-icons'],
compatibilityDate: '2025-03-12',
vite: {
server: {
proxy: {
'/api': {
target: "https://xysdwrmyy.cn/",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
}
}
}
}
})