-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
86 lines (67 loc) · 1.38 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
import { build, dynamicRoutes, feed, head } from './config';
export default {
target: 'static',
telemetry: true, // https://github.com/nuxt/telemetry
publicRuntimeConfig: {
perPage: process.env.PER_PAGE || 8,
},
head,
loading: {
color: '#2bb0ed',
height: '3px',
},
css: [],
plugins: [
'~/plugins/axios.js',
'~/plugins/vuejs-paginate.client.js',
'~/plugins/vuelidate.js',
],
buildModules: ['@nuxtjs/google-analytics', '@nuxtjs/tailwindcss'],
modules: [
'@nuxtjs/axios',
'@nuxtjs/cloudinary',
'@nuxtjs/feed',
'@nuxtjs/recaptcha',
'@nuxtjs/robots',
'@nuxtjs/sitemap',
'@nuxtjs/toast',
],
cloudinary: {
cloudName: 'dnkvsijzu',
useComponent: true,
},
robots: {
UserAgent: '*',
Disallow: process.env.NODE_ENV === 'production' ? '' : '/',
Sitemap: 'https://ofreport.com/sitemap.xml',
},
feed,
recaptcha: {
language: 'en',
siteKey: process.env.OFR_RECAPTCHA_SITE_KEY,
version: 2,
},
toast: {
position: 'top-center',
singleton: true,
iconPack: 'material',
},
sitemap: {
path: '/sitemap.xml',
hostname: 'https://ofreport.com',
gzip: true,
},
googleAnalytics: {
id: 'UA-22952661-1',
dev: false,
},
build,
generate: {
fallback: true,
routes: dynamicRoutes(),
},
pageTransition: {
name: 'fade',
mode: 'out-in',
},
};