-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
80 lines (80 loc) · 1.99 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
export default defineNuxtConfig({
modules: [
'@nuxtjs/google-fonts',
(_options, nuxt) => {
nuxt.hooks.hook('vite:extendConfig', (config) => {
// @ts-expect-error
config.plugins.push(vuetify({ autoImport: true }))
})
}
],
ssr: false,
build: {
transpile: ['vuetify']
},
nitro: {
esbuild: {
options: {
target: 'es2020'
}
}
},
// runtimeConfig will be overridden by environment variables, such as NUXT_PUBLIC_LINE_AUTH_URL
// refer https://nuxt.com/docs/guide/going-further/runtime-config#environment-variables
runtimeConfig: {
public: {
line: {
authUrl: process.env.LINE_AUTH_URL
},
discord: {
authUrl: process.env.DISCORD_AUTH_URL
}
},
line: {
clientID: process.env.LINE_CLIENT_ID,
callbackURI: process.env.LINE_CALLBACK_URI,
clientSecret: process.env.LINE_CLIENT_SECRET
},
firebase_admin: {
certPath: process.env.FIREBASE_ADMIN_CERT_PATH
},
jwt: {
secret: process.env.JWT_SECRET
},
discord: {
botToken: process.env.DISCORD_BOT_TOKEN,
clientID: process.env.DISCORD_CLIENT_ID,
callbackURI: process.env.DISCORD_CALLBACK_URI,
clientSecret: process.env.DISCORD_CLIENT_SECRET,
guildID: process.env.DISCORD_GUILD_ID,
memberRoleID: process.env.DISCORD_MEMBER_ROLE_ID
}
},
// configure meta
app: {
head: {
title: 'Lumos メンバー管理ページ',
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ charset: 'utf-8' },
{ property: 'og:type', content: 'website' },
{ property: 'og:site_name', content: 'Lumos メンバー管理ページ' }
]
}
},
googleFonts: {
families: {
'Zen Kaku Gothic New': {
wght: [400, 500, 600, 700]
}
}
},
vite: {
vue: {
template: {
transformAssetUrls
}
}
}
})