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': {
|
2025-04-08 18:04:28 +08:00
|
|
|
target: "http://192.168.10.140/",
|
2025-04-01 17:45:42 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
rewrite: (path) => path.replace(/^\/api/, ''),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|