-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
86 lines (86 loc) · 1.86 KB
/
nuxt.config.js
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
82
83
84
85
86
export default {
components: true,
head: {
titleTemplate: 'AirBnB Clone : %s',
htmlAttrs: {
Lang: 'en'
},
bodyAttrs: {
class: ['my-style']
},
meta: [{ charset: 'utf-8' }]
},
router: {
prefetchLinks: false
},
build: {
babel: {
plugins: [
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining'
]
}
},
buildModules: ['@nuxtjs/tailwindcss', '@nuxt/image'],
modules: [
'~/modules/auth',
'~/modules/algolia',
'~/modules/cloudinary',
'@nuxtjs/cloudinary',
'~/modules/stripe'
],
plugins: [
'~/plugins/auth.client',
'~/plugins/maps.client',
'~/plugins/dataApi',
'~/plugins/vCalendar.client',
'~/plugins/stripe.client'
],
cloudinary: {
cloudName: process.env.CLOUDINARY_CLOUDNAME
},
image: {
cloudinary: {
baseURL: `https://res.cloudinary.com/${process.env.CLOUDINARY_CLOUDNAME}/image/upload/`
}
},
css: ['~/assets/sass/app.scss'],
build: {
extractCss: true,
loaders: {
limit: 0
}
},
publicRuntimeConfig: {
rootUrl:
process.env.NODE_ENV === 'production'
? 'https://airbnb-clone-tau.vercel.app'
: 'http://localhost:3000',
auth: {
cookieName: 'idToken',
clientId: process.env.GOOGLE_AUTH_CLIENT_ID
},
algolia: {
appId: process.env.ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_READ_API_KEY
},
cloudinary: {
apiKey: process.env.CLOUDINARY_API_KEY
},
stripe: {
key: process.env.STRIPE_PUBLIC_KEY
}
},
privateRuntimeConfig: {
algolia: {
appId: process.env.ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_WRITE_API_KEY
},
cloudinary: {
apiSecret: process.env.CLOUDINARY_API_SECRET
},
stripe: {
secretKey: process.env.STRIPE_SECRET_KEY
}
}
}