-
Notifications
You must be signed in to change notification settings - Fork 7
/
nuxt.config.ts
75 lines (68 loc) · 1.53 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
export default defineNuxtConfig({
nitro: {
experimental: {
openAPI: true,
},
storage: {
github: {
driver: 'github',
branch: 'prod',
dir: '/data',
repo: 'computerization/enspire',
},
},
},
modules: [
'@vite-pwa/nuxt',
'@nuxtjs/tailwindcss',
'@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 for all the imported component
*/
prefix: '',
/**
* Directory that the component lives in.
* @default "./components/ui"
*/
componentDir: './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,
},
},
compatibilityDate: '2024-08-31',
})