-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
247 lines (218 loc) · 6.54 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
export default {
target: 'static',
ssr: true,
head: {
title: 'Promotion Efficiency - Your Hike to PEAK!',
titleTemplate: '%s | Promotion Efficiency',
htmlAttrs: {
lang: 'en',
},
meta: [
{hid:'charset', charset: 'utf-8'},
{name:"theme-color",content:"#006999"},
{name: 'viewport',content: 'width=device-width, initial-scale=1'},
{hid: 'description',name: 'description',content: 'A platform of skilled Saudis who are equipped with ambition and creativity in the fields of marketing and advertisement, which makes them create unusual, innovative and out-of-the-box marketing solutions'},
{hid: 'keywords',name: 'keywords',content: 'promotion, efficiency, advertisement, marketing, khobar, eastern, research, design, photography, videography, hike to peak, websites, instagram marketing, snapchat marketing, field marketing, print design'},
{name: 'format-detection',content: 'telephone=no'},
{hid: 'author:text',name: 'author',content: 'Promotion Efficiency'},
{hid: 'author:file',name: 'author',type: 'text/plain',href: '/humans.txt'},
{hid: 'og:type',name: 'og:type',content: 'website'},
{hid: 'og:title',name: 'og:title',content: 'Promotion Efficiency'},
{hid: 'og:description',name: 'og:description',content: 'A platform of skilled Saudis who are equipped with ambition and creativity in the fields of marketing and advertisement'},
{hid: 'og:image',name: 'og:image',content: 'https://sixdegz.mo.cloudinary.net/promoe/assets/images/social_icon.png'},
{hid: 'og:url',name: 'og:url',content: 'https://www.promoe.com.sa'},
{hid: 'og:site_name',name: 'og:site_name',content: 'Promotion Efficiency'},
{hid: 'twitter:card',name: 'twitter:card',content: 'summary_large_image'},
{hid: 'twitter:title',name: 'twitter:title',content: 'Promotion Efficiency'},
{hid: 'twitter:description',name: 'twitter:description',content: 'A platform of skilled Saudis who are equipped with ambition and creativity in the fields of marketing and advertisement'},
{hid: 'twitter:image',name: 'twitter:image',content: 'https://sixdegz.mo.cloudinary.net/promoe/assets/images/social_icon.png'},
{hid: 'twitter:url',name: 'twitter:url',content: 'https://www.promoe.com.sa'},
{hid: 'twitter:site',name: 'twitter:site',content: '@promoefficiency'},
{hid: 'twitter:creator',name: 'twitter:creator',content: '@promoefficiency'},
],
link: [
{ hid:'icon:normal', rel: 'icon', href: '/favicon.ico' },
{ hid:'icon:x-icon', rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ hid:'icon:shortcut:x-icon', rel: 'shortcut icon', type: 'image/x-icon', href: '/favicon.ico' },
{ hid:'icon:svg', rel: 'icon', type: 'image/svg+xml', href: 'https://sixdegz.mo.cloudinary.net/promoe/assets/images/logo.svg' },
{ hid:'icon:png', rel: 'icon', type: 'image/png', href: 'https://sixdegz.mo.cloudinary.net/promoe/assets/images/logo.png' },
{ rel: 'preload', href: 'https://sixdegz.mo.cloudinary.net/promoe/assets/images/logo.png' },
{ rel: 'preload', href: 'https://sixdegz.mo.cloudinary.net/promoe/assets/images/white-logo.png' },
]
},
css: [
'~/assets/scss/main.scss'
],
plugins: [{
src: '~/plugins/bootstrap.client.js'
},
{
src: '~/plugins/countup.client.js'
},
{
src: '~/plugins/jsonld'
},
{
src: '~/plugins/snaptr.js', mode: 'client' // Snapchat pixel tracking plugin
},
{
src: '~/plugins/facebook.js', mode: 'client'
},
{ src: '~/plugins/gtag-conversion.js', mode: 'client' },
{ src: '~/plugins/google-analytics.js', mode: 'client' }
],
buildModules: [
'@nuxtjs/color-mode',
'@luxdamore/nuxt-humans-txt'
],
modules: [
'@nuxt/content',
'@nuxtjs/i18n',
'@nuxtjs/sitemap',
'@nuxtjs/robots',
'@nuxtjs/gtm',
'@nuxtjs/google-gtag'
],
gtm: {
id: 'GTM-TWB3BDQ',
enabled: true
},
robots: [
{
UserAgent: '*',
Disallow: ['/thanks','/ar/thanks', '/en/thanks']
}
],
components: true,
build: {
},
generate: {
//minify: false,
async routes() {
const {
$content
} = require('@nuxt/content')
const files = await $content({
deep: true
}).only(['path']).fetch()
return files.map(file => file.path === '/index' ? '/' : file.path)
}
},
env: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
router: {
trailingSlash: true,
},
i18n: {
strategy: 'prefix',
locales: [{
code: 'en',
iso: 'en-US',
file: 'en-US.js',
dir: 'ltr'
},
{
code: 'ar',
iso: 'ar-SA',
file: 'ar-SA.js',
dir: 'rtl'
}
],
lazy: true,
langDir: 'lang/',
defaultLocale: 'en',
baseUrl: process.env.BASE_URL || 'http://localhost:3000',
vueI18n: {
fallbackLocale: 'en'
}
},
sitemap: {
// options
hostname: "https://www.promoe.com.sa",
gzip: true,
i18n: true,
trailingSlash: true,
exclude: ['/'],
// nuxt-i18n notation (advanced)
i18n: {
locales: ['en', 'ar'],
routesNameSeparator: '___'
}
},
colorMode: {
},
content: {},
humansTxt: {
enabled: true,
hideGenericMessagesInConsole: false, // Disabled in production
hideErrorsInConsole: false,
fileName: 'humans.txt',
fileEncoding: 'utf8',
link: {
// Inject `<link type="text/plain" rel="<link.rel>" href="<link.href><filename>" />` inside the `head`
// Set to `link: false` to disable this behavior
rel: 'author',
href: '',
hid: 'humans-txt',
},
keepDevelopersInformations: true, // Keep info of my work in your `humans.txt` file 😍
// "The internet is for humans"
thanksTo: [
'BACKSTAGE',
{
key: 'Promotion Efficiency CEO',
value: 'Adel Omer',
},
{
key: 'From',
value: 'Khobar, Saudi Arabia',
},
{
key: 'Twitter',
value: '@promoefficiency',
},
{
key: '6 Degrees',
value: 'https://www.6d.com.sa',
},
],
site: [
'SITE',
{
key: 'Last update',
value: new Date().toLocaleDateString(
'en-US', {
month: '2-digit',
day: '2-digit',
year: 'numeric',
}
),
},
{
key: 'Standards',
value: [
'HTML5',
'CSS3',
'Javascript',
],
},
{
key: 'Components',
value: 'VueJs',
},
{
key: 'Software',
value: 'NuxtJs',
},
{
key: 'Language',
value: 'English/Arabic',
},
{
key: 'Doctype',
value: 'HTML5',
},
],
},
}