This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
nuxt.config.js
94 lines (92 loc) · 3.09 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
const locales = ['cs', 'en', 'sk'];
const localeCaptions = {cs: 'Čeština', en: 'English', vi: 'Tiếng Việt', ro: 'Română', ru: 'Русский', uk: 'Українська', pt: 'Português', nl: 'Nederlands', sk: 'Slovenčina'};
const pages = ['', 'audit-kod', 'caste-dotazy', 'cookies', 'podminky-pouzivani', 'napsali-o-nas', 'tym', 'ke-stazeni', 'sms'];
const routes = [];
for (const locale of locales) {
for (const page of pages) {
const url = page === '' ? '' : `/${page}`;
routes.push(`/${locale}${url}`);
}
}
export default {
target: 'static',
env: {
titleTemplate: ' – eRouška',
baseUrl: 'https://erouska.cz',
defaultLanguage: 'cs',
locales,
localeCaptions,
chatbotScript: process.env['CHATBOT_URL'] || 'https://e-rouska-custom-ui-test.eu-de.mybluemix.net/chatWindow.js'
},
generate: {
routes,
fallback: true
},
/*
** Headers of the page
*/
head() {
return {
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1'},
{property: 'og:type', content: 'website'},
{property: 'og:image', content: 'https://erouska.cz/img/share-banner-2.png'},
{property: 'twitter:card', content: 'summary_large_image'},
{property: 'twitter:image', content: 'https://erouska.cz/img/share-banner-2.png'},
{name: 'msapplication-TileColor', content: '#b91d47'},
{name: 'theme-color', content: '#ffffff'}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'},
{rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png'},
{rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png'},
{rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png'},
{rel: 'manifest', href: '/site.webmanifest'},
{rel: 'mask-icon', href: '/safari-pinned-tab.svg', color:'#ff0d58'},
{rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Merriweather:400,700|Open+Sans:400,400i,700,700i&display=swap&subset=latin-ext'}
],
script: [
// {src: process.env.chatbotScript, async: true, defer: true, body: true}
]
}
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'~~assets/styles.scss'
],
/*
** Plugins to load before mounting the App
*/
router: {
middleware: 'i18n'
},
plugins: ['~/plugins/i18n.js'],
/*
** Nuxt.js dev-modules
*/
buildModules: [
['@nuxtjs/google-analytics', {
id: 'UA-166645464-1',
set: [{field: 'anonymizeIp', value: true}]
}]
],
/*
** Nuxt.js modules
*/
modules: [],
/*
** Build configuration
*/
build: {
extractCSS: true,
extend(config, ctx) {
}
}
}