forked from Bizberg/NuxtBnB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
81 lines (80 loc) · 1.98 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
export default {
components: true,
head: {
titleTemplate: "Mastering Nuxt: %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', '@nuxt/image'],
cloudinary:{
cloudName: 'masteringnuxt',
},
image: {
cloudinary: {
baseURL: 'https://res.cloudinary.com/masteringnuxt/image/upload/'
}
},
css: ['~/assets/sass/app.scss'],
build: {
extractCSS: true,
loaders: {
limit: 0,
}
},
publicRuntimeConfig:{
rootUrl: process.env.NODE_ENV === 'production' ? process.env.BASE_URL_PRODUCTION : 'http://localhost:3000',
maps: {
key: process.env.GOOGLE_API_KEY
},
auth:{
cookieName: 'idToken',
clientId: process.env.GOOGLE_AUTH_CLIENT_ID,
},
algolia:{
appId: process.env.ALGOLIA_APP_ID,
key: process.env.ALGOLIA_PUBLIC_KEY,
},
cloudinary:{
apiKey: process.env.CLOUDINARY_API_KEY,
},
stripe:{
key: process.env.STRIPE_PUBLIC_KEY,
},
},
privateRuntimeConfig:{
algolia:{
appId: process.env.ALGOLIA_APP_ID,
key: process.env.ALGOLIA_SECRET_KEY,
},
cloudinary:{
apiSecret: process.env.CLOUDINARY_SECRET_KEY,
},
stripe:{
secretKey: process.env.STRIPE_SECRET_KEY,
},
},
}