-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
78 lines (78 loc) · 1.57 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
export default {
components: true,
head: {
titleTemplate: 'LevoBnB: %s',
htmlAttrs: {
lang: 'en',
},
bodyAttrs: {
class: ['my-style'],
},
meta: [
{
charset: 'utf-8',
},
],
},
router: {
prefetchLinks: false,
},
plugins: [
'~/plugins/maps.client',
'~/plugins/dataApi',
'~/plugins/auth.client',
'~/plugins/vCalendar.client',
'~/plugins/stripe.client',
],
modules: [
'~/modules/auth',
'~/modules/algolia',
'~/modules/cloudinary',
'@nuxtjs/cloudinary',
'~/modules/stripe',
],
buildModules: ['@nuxtjs/tailwindcss'],
cloudinary: {
cloudName: 'dy9jmzxjx',
},
css: ['~/assets/sass/app.scss'],
build: {
extractCSS: true,
loaders: {
limit: 0,
},
},
publicRuntimeConfig: {
rootUrl:
process.env.NODE_ENV === 'production'
? 'https://levo-bnb.vercel.app'
: 'http://localhost:3000',
auth: {
cookieName: 'idToken',
clientId:
'586769034827-u6fvionv6mh7sr95se524j95u8cl8htm.apps.googleusercontent.com',
},
algolia: {
appId: '3LWUG0HA7L',
key: '1cd64085e2f8f1d343257c7f760f44a8',
},
cloudinary: {
apiKey: '466848933876658',
},
stripe: {
key: 'pk_test_kJej6mAAN0hPu1ffCPQpinxq00X6Dbpvch',
},
},
privateRuntimeConfig: {
algolia: {
appId: '3LWUG0HA7L',
key: process.env.ALGOLIA_SECRET_KEY,
},
cloudinary: {
apiSecret: process.env.CLOUDINARY_SECRET_KEY,
},
stripe: {
secretKey: process.env.STRIPE_SECRET_KEY,
},
},
}