-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
39 lines (37 loc) · 915 Bytes
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// https://nuxt.com/docs/api/configuration/nuxt-config
require('dotenv').config();
export default defineNuxtConfig({
devtools: {
enabled: true,
timeline: {
enabled: true,
},
},
ssr: true, // 确保启用了SSR
css: ['~/assets/style/main.scss'],
modules: ['@unocss/nuxt', '@nuxtjs/mdc', '@nuxt/image', '@pinia/nuxt', '@pinia-plugin-persistedstate/nuxt'],
runtimeConfig: {},
routeRules: {
'/api/blog/**': { proxy: `${process.env.API_URL}/api/blog/**` },
},
// 能自动引入
// plugins: [{ src: '~/plugins/vue-mavon-editor', mode: 'client' }],
mdc: {
highlight: {
theme: {
default: 'vitesse-light',
dark: 'material-theme-palenight',
},
preload: ['sql'],
},
remarkPlugins: {
'remark-mdc': {
options: {
experimental: {
autoUnwrap: true,
},
},
},
},
},
});