-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
63 lines (61 loc) · 1.35 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'@unocss/nuxt',
'@nuxt/eslint',
'nuxt-monaco-editor',
],
ssr: true,
devtools: { enabled: false },
app: {
head: {
htmlAttrs: {
lang: 'en',
},
link: [
{
rel: 'stylesheet',
as: 'font',
href: 'https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet',
},
{
rel: 'preconnect',
href: 'href="https://fonts.googleapis.com',
crossorigin: '',
},
{
rel: 'preconnect',
href: 'https://fonts.googleapis.com',
},
],
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
],
},
rootTag: 'main',
rootAttrs: {
id: 'app',
},
},
css: ['~/index.css'],
runtimeConfig: {
geminiKey: '',
},
compatibilityDate: '2024-11-01',
eslint: {
config: {
stylistic: true,
},
},
monacoEditor: {
locale: 'en',
componentName: {
codeEditor: 'TypeJsonEditor',
diffEditor: 'TypeJsonDiffEditor',
},
},
unocss: {
nuxtLayers: true,
},
})