forked from sugarforever/chat-ollama
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
113 lines (111 loc) · 2.47 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
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']
},
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,
},
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',
},
}
})