-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
84 lines (84 loc) · 2.19 KB
/
nuxt.config.js
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
runtimeConfig: {
STARTER: "Running"
},
modules: [
[
'@pinia/nuxt',
{
autoImports: [
// 自动引入 `usePinia()`
'defineStore',
'storeToRefs',
// 自动引入 `usePinia()` 并重命名为 `usePiniaStore()`
['defineStore', 'definePiniaStore']
]
}
],
'@nuxtjs/i18n',
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode'
],
// https://html-validator.nuxtjs.org/
colorMode: {
classSuffix: ''
},
// https://qiita.com/ot_RikuOta/items/bd644957dacbac057a05#%E3%83%AC%E3%82%A4%E3%82%A2%E3%82%A6%E3%83%88%E3%82%92%E4%BD%9C%E6%88%90
// build: {
// transpile: ['vuetify']
// },
tailwindcss: {
cssPath: '~/assets/main.css'
},
// css: [
// 'vuetify/lib/styles/main.sass'
// // "~/assets/transition.css"
// ],
// https://v8.i18n.nuxtjs.org/getting-started/basic-usage/
i18n: {
vueI18n: {
legacy: false,
locale: 'en',
messages: {
en: {
welcome: 'Welcome'
},
fr: {
welcome: 'Bienvenue'
}
}
}
},
app: {
// https://nuxt.com/docs/getting-started/transitions#layout-transitions
// about the mode : https://vuejs.org/guide/built-ins/transition.html#transition-modes
// layoutTransition: { name: 'fade', mode: 'out-in' },
pageTransition: { name: 'bounce', mode: 'out-in' }
},
// https://nuxt.com/docs/guide/directory-structure/composables#how-files-are-scanned
imports: {
dirs: [
// Scan top-level modules
'composables',
// ... or scan modules nested one level deep with a specific name and file extension
'composables/*/index.{ts,js,mjs,mts}',
// ... or scan all modules within given directory
'composables/**'
]
},
nitro: {
storage: {
'redis': {
driver: 'redis',
/* redis connector options */
port: 6379, // Redis port
host: "127.0.0.1", // Redis host
// username: "myredis", // needs Redis >= 6
// password: "mypassword",
db: 0, // Defaults to 0
// tls: {} // tls/ssl
}
}
}
})