-
Notifications
You must be signed in to change notification settings - Fork 465
/
Copy pathnuxt.config.ts
131 lines (129 loc) · 2.77 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
import { LanguageList } from './config/i18n'
import { APP_NAME } from './config/index'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
auth: {
provider: {
type: 'local',
endpoints: {
getSession: { path: '/user' }
},
pages: {
login: '/'
},
token: {
signInResponseTokenPointer: '/token/accessToken'
},
sessionDataType: { id: 'string', email: 'string', name: 'string' }
},
session: {
// Whether to refresh the session every time the browser window is refocused.
enableRefreshOnWindowFocus: true,
// Whether to refresh the session every `X` milliseconds. Set this to `false` to turn it off. The session will only be refreshed if a session already exists.
enableRefreshPeriodically: false
},
globalAppMiddleware: {
isEnabled: false
}
},
devtools: { enabled: false },
modules: [
'@nuxt/ui', '@vueuse/nuxt',
['@nuxtjs/google-fonts', {
families: {
'Noto Sans': true,
'Josefin+Sans': true,
Lato: [100, 300],
Raleway: {
wght: [100, 400],
ital: [100]
},
Inter: '200..700',
'Crimson Pro': {
wght: '200..900',
ital: '200..700',
}
}
}],
"@sidebase/nuxt-auth",
['@nuxtjs/i18n', {
vueI18n: "@/config/nuxtjsI18n"
}]
],
nitro: {
experimental: {
openAPI: true
}
},
ui: {
icons: ['heroicons', 'iconoir', 'material-symbols', 'mdi', 'svg-spinners']
},
css: [
'~/assets/index.scss',
],
app: {
head: {
link: [
{
rel: 'icon',
type: 'image/svg+xml',
href: '/logo.svg',
},
],
meta: [
{
name: 'viewport',
content: 'width=device-width',
}
],
title: APP_NAME,
}
},
runtimeConfig: {
public: {
kb: {
create: {
role: ''
}
},
modelProxyEnabled: false,
chatMaxAttachedMessages: 50,
appName: APP_NAME,
tavilyApiKey: ''
},
modelProxyUrl: ''
},
i18n: {
//Asynchronous call, on-demand loading
locales: LanguageList,
lazy: true,
langDir: 'locales/',
defaultLocale: 'en-US',//def Language, please use Language code
strategy: "no_prefix",
compilation: {
strictMessage: false,
},
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
redirectOn: 'root',
},
},
vite: {
vue: {
template: {
compilerOptions: {
isCustomElement: (tag) => false
}
}
},
worker: {
format: 'es'
},
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm-bundler.js'
}
}
}
})