forked from Computerization/Enspire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
92 lines (81 loc) · 1.72 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
export default defineNuxtConfig({
nitro: {
experimental: {
// TODO: Track nuxt/content#2839. Waiting for a new release.
openAPI: false,
},
storage: {
github: {
driver: 'github',
branch: 'prod',
dir: '/data',
repo: 'computerization/enspire',
},
},
},
modules: [
'@vite-pwa/nuxt',
'@unocss/nuxt',
'@nuxt/content',
'shadcn-nuxt',
'@nuxt/icon',
'@nuxt/fonts',
'nuxt-svgo',
'@sentry/nuxt/module',
'@nuxt/image',
'dayjs-nuxt',
],
build: {
transpile: ['vue-clerk', '@clerk/clerk-js'],
},
runtimeConfig: {
public: {
sentry: {
dsn: process.env.SENTRY_DSN,
environment: process.env.SENTRY_ENV,
},
clerkPublishableKey: process.env.CLERK_PUBLISHABLE_KEY,
payloadCmsUrl: process.env.PAYLOAD_CMS_URL,
},
clubDataSecretKey: process.env.CLUB_DATA_SECRET_KEY,
tsimsUrl: process.env.TSIMS_URL,
clerkSecretKey: process.env.CLERK_SECRET_KEY,
},
shadcn: {
prefix: '',
componentDir: './app/components/ui',
},
dayjs: {
locales: ['en', 'zh-cn'],
plugins: ['relativeTime', 'utc', 'timezone', 'localizedFormat'],
defaultLocale: 'zh-cn',
defaultTimezone: 'Asia/Shanghai',
},
sentry: {
sourceMapsUploadOptions: {
org: 'computerization',
project: 'enspire',
authToken: process.env.SENTRY_AUTH_TOKEN,
},
},
sourcemap: {
client: true,
},
imports: {
presets: [
{
from: '@tanstack/vue-query',
imports: ['useQuery'],
},
],
},
vite: {
optimizeDeps: {
exclude: ['vee-validate'],
},
},
compatibilityDate: '2024-08-31',
future: {
compatibilityVersion: 4,
},
})