-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
73 lines (71 loc) · 2.32 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
export default defineNuxtConfig({
runtimeConfig:{
public:{
adminPath : '/admin',
SERVER_API_HOST : 'http://127.0.0.1:8080'
}
},
app: {
head: {
title: 'QimenIDC - 云原生的多云管理及混合云融合系统',
titleTemplate: '%s - QimenIDC - 云原生的多云管理及混合云融合系统',
htmlAttrs: {
lang: 'zh',
},
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content: 'width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no',
},
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.png' },
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap',
},
],
},
},
css: ['~/assets/css/app.css'],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
modules: ['@pinia/nuxt', '@nuxtjs/i18n'],
i18n: {
locales: [
{ code: 'da', file: 'da.json' },
{ code: 'de', file: 'de.json' },
{ code: 'el', file: 'fr.json' },
{ code: 'en', file: 'en.json' },
{ code: 'es', file: 'es.json' },
{ code: 'fr', file: 'fr.json' },
{ code: 'hu', file: 'hu.json' },
{ code: 'it', file: 'it.json' },
{ code: 'ja', file: 'ja.json' },
{ code: 'pl', file: 'pl.json' },
{ code: 'pt', file: 'pt.json' },
{ code: 'ru', file: 'ru.json' },
{ code: 'sv', file: 'sv.json' },
{ code: 'tr', file: 'tr.json' },
{ code: 'zh', file: 'zh.json' },
{ code: 'ae', file: 'ae.json' },
],
lazy: true,
defaultLocale: 'zh',
strategy: 'no_prefix',
langDir: 'locales/',
},
vite: {
optimizeDeps: { include: ['quill'] },
},
router: {
options: { linkExactActiveClass: 'active' },
},
});