-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
78 lines (77 loc) · 2.03 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
export default defineNuxtConfig({
devtools: {enabled: false},
app: {
// head
head: {
title: 'Answer Book Tool',
meta: [
{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-7X3KPN3R02',
async: true
},
{
src: '/ga.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',
'nuxt-icon'
],
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: {}
},
runtimeConfig: {
openaiApiKey: '',
proxyUrl: ''
}
})