-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
35 lines (34 loc) · 928 Bytes
/
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
import eslintPlugin from 'vite-plugin-eslint'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
srcDir: 'src/',
typescript: {
strict: true,
shim: false,
typeCheck: true
},
runtimeConfig: {
// The private keys which are only available within server-side
TWITTER_KEY: process.env.TWITTER_KEY || '',
TWITTER_SECRET: process.env.TWITTER_SECRET || '',
// Keys within public, will be also exposed to the client-side
public: {
publicKey: '123'
}
},
modules: [
'@nuxtjs/color-mode',
'@nuxtjs/tailwindcss',
'@pinia/nuxt'
],
colorMode: {
preference: 'system', // default theme
dataValue: 'theme', // activate data-theme in <html> tag
classSuffix: ''
},
vite: {
plugins: [
eslintPlugin()
]
}
})