forked from WongSaang/chatgpt-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
83 lines (83 loc) · 2.06 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
// https://nuxt.com/docs/api/configuration/nuxt-config
const appName = process.env.NUXT_PUBLIC_APP_NAME ?? 'ChatGPT UI'
export default defineNuxtConfig({
debug: process.env.NODE_ENV !== 'production',
ssr: process.env.SSR !== 'false',
app: {
head: {
title: appName,
},
},
runtimeConfig: {
public: {
appName: appName,
typewriter: false,
typewriterDelay: 50,
customApiKey: false
}
},
build: {
transpile: ['vuetify']
},
css: [
'vuetify/styles',
'material-design-icons-iconfont/dist/material-design-icons.css',
'highlight.js/styles/panda-syntax-dark.css',
],
modules: [
'@kevinmarrec/nuxt-pwa',
'@nuxtjs/color-mode',
'@nuxtjs/i18n'
],
pwa: {
manifest: {
name: appName,
short_name: appName,
description: 'A ChatGPT web Client'
},
workbox: {
enabled: process.env.DEBUT_PWA === 'true',
}
},
i18n: {
strategy: 'no_prefix',
locales: [
{
code: 'en',
iso: 'en-US',
name: 'English',
file: 'en-US.json',
},
{
code: 'zh-CN',
iso: 'zh-CN',
name: '简体中文',
file: 'zh-CN.json',
},
{
code: 'ru',
iso: 'ru-RU',
name: 'Русский',
file: 'ru-RU.json',
},
{
code: 'fr',
iso: 'fr-FR',
name: 'Français',
file: 'fr-FR.json',
},
{
code: 'es',
iso: 'es-ES',
name: 'Español',
file: 'es-ES.json',
}
],
lazy: true,
langDir: 'lang',
defaultLocale: process.env.DEFAULT_LOCALE || 'en',
vueI18n: {
fallbackLocale: 'en',
},
}
})