-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
81 lines (80 loc) · 1.72 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
81
export default defineNuxtConfig({
ssr: false,
app: {
head: {
viewport: 'width=device-width, initial-scale=1, maximum-scale=1',
charset: 'utf-8',
meta: [
{ name: 'description', content: '' },
{ name: 'viewport', content: 'width=device-width' },
{ name: 'format-detection', content: 'telephone=no' },
{ name: 'theme-color', content: '#f5f6f4' }
],
link: [
{
rel: 'icon',
href: '/favicon.png'
}
],
bodyAttrs: {
class: 'test'
}
}
},
typescript: {
shim: false,
strict: true
},
modules: [
'nuxt-primevue',
'@pinia/nuxt',
'@vueform/nuxt',
[
'@nuxtjs/google-fonts',
{
families: {
'Zen Maru Gothic': [400, 700]
}
}
]
],
css: [
'@/assets/css/reset.css',
'@/assets/css/primevue-theme.css',
'primevue/resources/primevue.min.css',
'primeicons/primeicons.css',
'primeflex/primeflex.css',
'@/assets/scss/index.scss'
],
primevue: {
options: {
ripple: true
},
components: {
include: '*'
},
// theme: 'aura-light-green',
cssLayerOrder: 'reset, primevue, primeicons'
},
build: {},
vite: {
define: {
'process.env.DEBUG': false
},
server: {
watch: {
usePolling: true
}
}
},
runtimeConfig: {
// only variables under public are exposed to the client side
// refer: https://dev.to/amitgurbani/environment-variables-in-nuxt-3-9p6
public: {
baseURL: 'http://localhost:1306',
callbackURL: 'http://localhost:1306/api/v1/auth/line/callback',
lineClientID: process.env.LINE_CLIENT_ID,
enableRouting: true
}
}
})