-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
60 lines (59 loc) · 1.2 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import tailwindScrollbar from 'tailwind-scrollbar'
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
'@pinia/nuxt',
'@nuxt/ui',
'@nuxtjs/i18n',
'@vueuse/nuxt',
'@pinia-plugin-persistedstate/nuxt',
'@nuxt/eslint',
],
tailwindcss: {
exposeConfig: true,
config: {
plugins: [tailwindScrollbar],
theme: {
extend: {
colors: {
bl: {
50: '#fafafa',
100: '#f5f5f5',
200: '#eeeeee',
300: '#e0e0e0',
400: '#bdbdbd',
500: '#000',
600: '#757575',
700: '#616161',
800: '#424242',
900: '#212121',
},
},
},
},
},
},
i18n: {
locales: [
{
code: 'en',
name: 'English',
file: 'en.json',
},
{
code: 'cn',
name: 'Chinese',
file: 'cn.json',
},
],
langDir: 'locales',
defaultLocale: 'cn',
},
runtimeConfig: {
public: {
unsplashapikey: process.env.NEXT_PUBLIC_UNSPLASHAPIKEY,
},
},
eslint: {},
})