-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
43 lines (42 loc) · 954 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
40
41
42
43
import { fa } from "element-plus/es/locale";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
title: 'Blog-nuxt',
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ charset: 'utf-8' },
],
bodyAttrs: {
class: 'theme-white'
}
}
},
css: [
'@/assets/css/base.css',
'@/assets/font/iconfont.css',
'@/assets/css/theme/var.less'
],
modules: [
'@element-plus/nuxt',
'@pinia/nuxt',
],
elementPlus: {
themes: ['dark']
},
nitro: {
devProxy: {
"/api": {
target: "http://39.108.135.247:8888",
prependPath: true,
changeOrigin: true,
}
}
},
runtimeConfig: {
public: {
VITE_API_HOST: "http://39.108.135.247:8888"
}
}
})