-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
94 lines (94 loc) · 2.09 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
app: {
head: {
link: [
{ rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },
{ rel: 'shortcut icon', href: '/favicon.ico' },
{
rel: 'apple-touch-icon',
sizes: '180x180',
href: '/apple-touch-icon.png',
},
{ rel: 'manifest', href: '/site.webmanifest' },
{ rel: 'canonical', href: 'https://www.transinacademia.org/' },
],
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' },
{ name: 'apple-mobile-web-app-title', content: 'TiA!' },
{ name: 'author', content: 'Trans in Academia!' },
],
},
},
fonts: {
fontsource: {
families: {
Inter: [100, 300, 400, 500, 700],
},
},
},
modules: [
'@nuxt/image',
'@nuxt/eslint',
'@nuxt/fonts',
'@nuxtjs/i18n',
'@nuxtjs/seo',
'@nuxthub/core',
'@nuxt/ui',
],
routeRules: {
'/': {
ssr: true,
},
'/dash/**': {
ssr: false,
},
},
ui: {
global: true,
},
hub: {
ai: false,
analytics: false,
blob: false,
cache: false,
database: false,
kv: true,
},
i18n: {
baseUrl: 'https://www.transinacademia.org',
defaultLocale: 'zh',
locales: [
{ code: 'zh', language: 'zh-CN', name: '中文', file: 'zh.json' },
{ code: 'en', language: 'en-US', name: 'English', file: 'en.json' },
],
strategy: 'prefix_except_default',
lazy: true,
langDir: 'locales/',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'tia_i18n_language',
redirectOn: 'root',
alwaysRedirect: true,
fallbackLocale: 'en',
},
},
eslint: {
checker: true,
},
typescript: {
typeCheck: true,
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {}),
},
},
runtimeConfig: {
tiaAuthToken: 'token',
},
});