xinyang5yuan-web/nuxt.config.ts

40 lines
765 B
TypeScript
Raw Normal View History

2025-04-01 17:45:42 +08:00
// https://nuxt.com/docs/api/configuration/nuxt-config
import { defineNuxtConfig } from 'nuxt/config'
export default defineNuxtConfig({
app: {
2025-04-08 18:04:28 +08:00
baseURL: '/',
2025-04-01 17:45:42 +08:00
},
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: "http://xysdwrmyy.cn/",
2025-04-01 17:45:42 +08:00
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
}
}
}
}
})