-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
111 lines (99 loc) · 2.88 KB
/
nuxt.config.ts
File metadata and controls
111 lines (99 loc) · 2.88 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import tailwindcss from '@tailwindcss/vite'
import vue from '@vitejs/plugin-vue'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'@nuxt/eslint',
'@nuxt/fonts',
'@nuxt/icon',
'@nuxt/image',
'@nuxt/scripts',
'@nuxt/test-utils',
'shadcn-nuxt',
'@nuxtjs/color-mode',
'nuxt-auth-utils',
'nuxt-workers',
'nuxt-processor',
],
devtools: { enabled: true },
app: {
head: {
htmlAttrs: {
lang: 'en',
},
},
},
css: ['~/assets/css/tailwind.css'],
colorMode: {
classSuffix: '',
preference: 'system', // atau 'dark' | 'light'
fallback: 'light',
storage: 'cookie',
},
runtimeConfig: {
appUrl: 'http://localhost:3000',
resendApiKey: '',
mailFromName: 'Warsono',
mailFromEmail: 'warsono16694@gmail.com',
},
compatibilityDate: '2024-11-01',
nitro: {
experimental: {
tasks: true,
},
rollupConfig: {
plugins: [vue()],
},
},
vite: {
plugins: [tailwindcss()],
},
eslint: {
config: {
stylistic: true,
standalone: false,
},
},
processor: {
redis: {
// Prefer a single URL if available (takes precedence over other fields)
// e.g. redis://user:pass@host:6379/0
// eslint-disable-next-line node/prefer-global/process
url: process.env.NUXT_REDIS_URL,
// eslint-disable-next-line node/prefer-global/process
host: process.env.NUXT_REDIS_HOST ?? '127.0.0.1',
// eslint-disable-next-line node/prefer-global/process
port: Number(process.env.NUXT_REDIS_PORT ?? 6379),
// eslint-disable-next-line node/prefer-global/process
password: process.env.NUXT_REDIS_PASSWORD ?? '',
// eslint-disable-next-line node/prefer-global/process
username: process.env.NUXT_REDIS_USERNAME,
// eslint-disable-next-line node/prefer-global/process
db: Number(process.env.NUXT_REDIS_DB ?? 0),
// Optional connection behavior
// Delay connecting until first Redis command (useful to avoid build-time connects)
// eslint-disable-next-line node/prefer-global/process
lazyConnect: process.env.NUXT_REDIS_LAZY_CONNECT
// eslint-disable-next-line node/prefer-global/process
? process.env.NUXT_REDIS_LAZY_CONNECT === 'true'
: undefined,
// Milliseconds to wait before giving up when establishing the connection
// eslint-disable-next-line node/prefer-global/process
connectTimeout: process.env.NUXT_REDIS_CONNECT_TIMEOUT
// eslint-disable-next-line node/prefer-global/process
? Number(process.env.NUXT_REDIS_CONNECT_TIMEOUT)
: undefined,
},
},
shadcn: {
/**
* Prefix for all the imported component
*/
prefix: '',
/**
* Directory that the component lives in.
* @default "./components/ui"
*/
componentDir: './app/components/ui',
},
})