forked from xiaobaiweinuli/aipan-netdisk-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
130 lines (116 loc) · 3.16 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
118
119
120
121
122
123
124
125
126
127
128
129
130
export default defineNuxtConfig({
devtools: { enabled: false },
app: {
// head
head: {
title: '灵梦-网盘资源搜索',
meta: [
{
name: 'description',
content: '灵梦-网盘资源搜索, 一个免费的网盘资源搜索程序,仅供学习使用。'
},
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
name: 'referrer',
content: 'no-referrer'
},
{
name: 'referrer',
content: 'always'
},
{
name: 'referrer',
content: 'strict-origin-when-cross-origin'
}
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
script: [
{
src: 'https://www.googletagmanager.com/gtag/js?id=G-17SPF6S871',
async: true
},
{
src: '/ga.js'
},
{
src: '/qrcode.min.js'
},
{
src: 'https://challenges.cloudflare.com/turnstile/v0/api.js'
},
{
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8210373406341452',
async: true,
crossorigin: 'anonymous'
}
]
}
},
// build modules
modules: [
'@element-plus/nuxt',
'@nuxtjs/tailwindcss',
'@nuxtjs/device',
'@nuxtjs/i18n',
'@nuxtjs/google-fonts',
'@nuxtjs/color-mode',
'@pinia/nuxt',
'@pinia-plugin-persistedstate/nuxt',
],
colorMode: {
preference: 'light',
classSuffix: ''
},
tailwindcss: {
configPath: 'tailwind.config.js'
},
googleFonts: {
display: 'swap',
prefetch: false,
preconnect: false,
preload: true,
download: false,
base64: false,
families: {
'Inter': [100, 200, 300, 400, 500, 600, 700, 800, 900],
'Poetsen One': [100, 200, 300, 400, 500, 600, 700, 800, 900],
'Sedan SC': [100, 200, 300, 400, 500, 600, 700, 800, 900],
'Briem Hand': [100, 200, 300, 400, 500, 600, 700, 800, 900],
'Noto Sans Simplified Chinese': [100, 200, 300, 400, 500, 600, 700, 800, 900]
}
},
i18n: {
defaultLocale: 'cn',
langDir: './assets/lang/',
locales: [
{
code: 'en',
name: 'English',
iso: 'en-US',
file: 'en-US.json'
},
{
code: 'cn',
name: '中文',
iso: 'zh-CN',
file: 'zh-CN.json'
}
],
},
plugins: [
],
nitro: {
devProxy: {
},
experimental: {
wasm: true,
},
},
runtimeConfig: {
adminUser: process.env.ADMIN_USER,
adminPassword: process.env.ADMIN_PASSWORD,
adminEmail: process.env.ADMIN_EMAIL,
jwtSecret: process.env.JWT_SECRET
},
compatibilityDate: '2024-09-16'
})