2024-11-17 11:45:08 +08:00
|
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
|
|
|
|
|
|
|
|
export default defineNuxtConfig({
|
|
|
|
|
compatibilityDate: '2024-04-03',
|
|
|
|
|
devtools: { enabled: true },
|
2024-11-17 13:05:55 +08:00
|
|
|
|
app: {
|
|
|
|
|
head: {
|
|
|
|
|
title: 'CANTYONION.SITE',
|
|
|
|
|
meta: [
|
|
|
|
|
{name: 'viewport', content: 'width=device-width, initial-scale=1'},
|
|
|
|
|
{name: 'charset', content: 'utf-8'},
|
|
|
|
|
{name: 'keywords', content: 'cantyonion, onion, 洋葱, 博客, 学习, 主页, index'},
|
|
|
|
|
{name: 'description', content: 'cantyonion的超级基地,进来看看吧!'},
|
2024-11-17 13:17:47 +08:00
|
|
|
|
],
|
|
|
|
|
link: [
|
|
|
|
|
{rel: 'icon', href: '/favicon.png'},
|
2024-11-17 13:05:55 +08:00
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-11-17 11:45:08 +08:00
|
|
|
|
components: true,
|
|
|
|
|
css: [
|
|
|
|
|
'@fortawesome/fontawesome-svg-core/styles.css',
|
|
|
|
|
'~/assets/css/main.scss'
|
|
|
|
|
],
|
|
|
|
|
postcss: {
|
|
|
|
|
plugins: {
|
|
|
|
|
tailwindcss: {},
|
|
|
|
|
autoprefixer: {},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
build: {
|
2024-11-17 13:52:46 +08:00
|
|
|
|
transpile: ['@fortawesome/vue-fontawesome', 'vue3-typed-js']
|
2024-11-17 11:45:08 +08:00
|
|
|
|
},
|
|
|
|
|
vite: {
|
|
|
|
|
css: {
|
|
|
|
|
preprocessorOptions: {
|
|
|
|
|
scss: {
|
|
|
|
|
api: 'modern-compiler' // or "modern"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
server: {
|
|
|
|
|
proxy: {
|
|
|
|
|
'/api': {
|
|
|
|
|
target: 'https://cantyonion.site',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
rewrite: (path) => path.replace(/^\/api/, '')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
})
|