-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
117 lines (110 loc) · 2.28 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: true,
css: ["@/assets/globals.css"],
devtools: { enabled: false },
extends: ["@nuxt/ui-pro"],
modules: [
"@nuxt/content",
"@nuxt/image",
"@nuxt/ui",
"@nuxtjs/i18n",
"@nuxtjs/seo",
"nuxt-og-image",
"@nuxt/fonts",
],
nitro: {
prerender: {
routes: ["/sitemap.xml"],
},
},
icon: {
provider: "server",
serverBundle: {
collections: ["ph"],
},
},
image: {
quality: 80,
format: ["webp", "jpeg"],
},
i18n: {
baseUrl: "https://bluescript.app",
langDir: "locales",
lazy: false,
strategy: "no_prefix",
defaultLocale: "en",
detectBrowserLanguage: {
useCookie: true,
cookieKey: "i18n_redirected",
redirectOn: "root", // recommended
},
locales: [
{
code: "ko",
language: "ko-KR",
name: "한국어",
file: "ko/main.json",
},
{
code: "en",
language: "en-US",
name: "English",
file: "en/main.json",
},
{
code: "fr",
language: "fr-FR",
name: "Français",
file: "fr/main.json",
},
{
code: "es",
language: "es-ES",
name: "Español",
file: "es/main.json",
},
{
code: "ru",
language: "ru-RU",
name: "Русский",
file: "ru/main.json",
},
{
code: "ja",
language: "ja-JP",
name: "日本語",
file: "ja/main.json",
},
{
code: "zh",
language: "zh-CN",
name: "中文",
file: "zh/main.json",
},
{
code: "ar",
language: "ar-SA",
name: "العربية",
file: "ar/main.json",
},
{
code: "hi",
language: "hi-IN",
name: "हिन्दी",
file: "hi/main.json",
},
],
},
routeRules: {
"/docs": { redirect: "/docs/getting-started" },
"/docs/training/": {
redirect: "/docs/training/visual/rapid-visual-perception",
},
"/docs/training/visual/": {
redirect: "/docs/training/visual/rapid-visual-perception",
},
"/": { prerender: true },
},
compatibilityDate: "2024-07-25",
});