-
Notifications
You must be signed in to change notification settings - Fork 5
/
nuxt.config.ts
88 lines (88 loc) · 1.81 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
debug: false,
devtools: { enabled: false },
modules: [
// 'nitro-cloudflare-dev',
'@vueuse/nuxt',
'@unocss/nuxt',
'@nuxt/image',
'@pinia/nuxt',
'shadcn-nuxt',
'unplugin-info/nuxt',
'unplugin-analytics/nuxt',
'@nuxt/eslint' // https://eslint.nuxt.com/packages/module
],
nitro: {
prerender: {
autoSubfolderIndex: false
},
experimental: {
websocket: true
}
},
components: [
// {
// path: '~/components/common',
// pathPrefix: false
// },
// {
// path: '~/components/docs',
// pathPrefix: false
// },
{
path: '~/components',
pathPrefix: false
}
],
alias: {},
css: ['@unocss/reset/tailwind.css'],
app: {
head: {
title: '雷索纳斯市场',
viewport: 'width=device-width,initial-scale=1,viewport-fit=cover',
htmlAttrs: {
lang: 'zh-CN'
},
link: [{ rel: 'icon', href: '/favicon.png' }],
meta: [],
script: []
}
},
runtimeConfig: {
TURSO_URL: import.meta.env.TURSO_URL,
TURSO_AUTH_TOKEN: import.meta.env.TURSO_AUTH_TOKEN
},
image: {},
unocss: {
preflight: true
},
shadcn: {
prefix: '',
componentDir: './components/ui'
},
info: {
meta: {
// ...
}
},
analytics: {
umami: {
src: `umami.onekuma.cn`,
id: `6d532af3-e9bc-43a1-998b-8d3cae5fcbb6`
},
clarity: {
id: 'lbvx2f1py2'
}
},
eslint: {
config: {
stylistic: {
indent: 2, // 2空格缩进
semi: true, // 语句末尾需要分号
commaDangle: 'never', // 不允许逗号结尾
braceStyle: '1tbs' // 1tbs大括号风格, https://eslint.style/rules/js/brace-style
}
}
}
});