forked from Jazee6/cloudflare-ai-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
59 lines (58 loc) · 1.52 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: {enabled: false},
modules: ['@nuxt/ui', '@nuxtjs/i18n'],
css: ['~/assets/css/style.css'],
devServer: {
port: 3001,
},
routeRules: {
'/': {
prerender: true,
}
},
app: {
head: {
title: 'CF AI Web',
meta: [
{
name: 'keywords',
content: 'CF AI Web, AI, Cloudflare Workers, ChatGPT, GeminiPro, Google Generative AI'
},
{
name: 'description',
content: 'Integrated web platform supporting GeminiPro/Cloudflare Workers AI/ChatGPT by Jazee6'
}
],
link: [
{
rel: 'manifest',
href: '/manifest.json'
}
]
}
},
vite: {
build: {
rollupOptions: {
output: {
manualChunks: (id) => {
if (id.includes('node_modules')) {
return 'vendor'
}
}
}
}
}
},
i18n: {
vueI18n: './i18n.config.ts',
strategy: 'no_prefix',
defaultLocale: 'zh',
}
// nitro: {
// vercel: {
// regions: ["cle1", "iad1", "pdx1", "sfo1", "sin1", "syd1", "hnd1", "kix1"]
// }
// }
})