-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
38 lines (36 loc) · 1.13 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
export default {
vite: {
define: {
'process.env.DEBUG': false,
},
},
meta: {
title: 'Nuxt3 Auth Demo',
link: [
{
href: 'https://fonts.googleapis.com/css2?family=Helvetica:wght@100',
rel: 'stylesheet',
},
],
},
runtimeConfig: {
sessionCookieName: process.env.SESSION_COOKIE_NAME || '__session', // クッキー作成用シークレットコード
sessionCookieSecret: process.env.SESSION_COOKIE_SECRET || 'secret',
sessionExpires: parseInt(process.env.SESSION_EXPIRES || '60 * 30', 10), // 30分
sessionIdPrefix: process.env.SESSION_ID_PREFIX || 'sess:', // Redisセッション保存用セッションIDプレフィックス
sessionRedisUrl: process.env.SESSION_REDIS_URL || 'redis://localhost:6379/',
mongoUrl: process.env.MONGO_URL || 'mongodb://localhost:27017',
},
nitro: {
plugins: [
"~/server/index.ts"
]
},
// Tailwind configuration
modules: ['@nuxtjs/tailwindcss', '@nuxtjs/color-mode'],
colorMode: {
preference: 'system', // default theme
dataValue: 'theme', // activate data-theme in <html> tag
classSuffix: '',
},
}