-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
136 lines (126 loc) · 2.88 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
export default {
htmlAttrs: {
lang: 'pl',
},
/*
** Headers of the page
*/
head: {
title: 'DEŻAL: nowoczesne żaluzje, plisy i rolety | Poznań i okolice.',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'theme-color', content: '#ffe100' },
{
hid: 'description',
name: 'description',
content:
'Oferowane przez firmę DEŻAL Poznań rolety, plisy i żaluzje to najwyższej jakości osłony okienne. Indywidualna oferta, szczegółowy pomiar i szybka realizacja.',
},
{ 'http-equiv': 'cache-control', content: 'max-age=604800, public' },
],
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: '/favicon.ico',
},
],
},
/*
** Global CSS
*/
css: [
'@/assets/stylesheets/mixins/main-variables.scss',
'~/assets/css/main.scss',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
{ src: '~/plugins/vue-scrollto.js', ssr: false },
{ src: '~plugins/ga.js', ssr: false },
],
pwa: {
manifest: {
name: 'Deżal Rolety Poznań',
short_name: 'Deżal',
theme_color: '#ffe100',
lang: 'pl',
},
icon: {
iconFileName: 'logo-pwa.png',
},
},
router: {
middleware: ['redirect'],
},
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
'@nuxtjs/pwa',
'nuxt-sass-resources-loader',
'@nuxtjs/sitemap',
'@nuxtjs/firebase',
'@nuxtjs/robots',
'@netsells/nuxt-hotjar',
{
id: '2994470',
sv: '6',
},
],
styleResources: {
scss: ['@/assets/stylesheets/mixins/*.scss', '@/assets/stylesheets/*.scss'],
},
sitemap: {
hostname: 'https://dezalroletypoznan.pl',
gzip: true,
routes: [
'/kontakt',
'/rolety-dzien-noc',
'/rolety-materialowe',
'/rolety-rzymskie',
'/plisy',
'/zaluzje',
'/verticale',
'/moskitiery',
'/realizacje',
],
},
robots: {
UserAgent: '*',
Allow: '/',
Disallow: '/error',
Sitemap: 'https://dezalroletypoznan.pl/sitemap.xml',
},
firebase: {
config: {
apiKey: 'AIzaSyAzEy6DqrnNLqqjLagqEnxmzYRMrJrYX8A',
authDomain: 'dezal-e34b9.firebaseapp.com',
databaseURL: 'https://dezal-e34b9.firebaseio.com',
projectId: 'dezal-e34b9',
storageBucket: 'dezal-e34b9.appspot.com',
messagingSenderId: '1098134824316',
appId: '1:1098134824316:web:03f74fc2d6433efa',
},
services: {
firestore: {
enablePersistence: {
synchronizeTabs: true,
},
},
},
},
build: {
extend(config, { isServer }) {
if (isServer) {
config.externals = {
'@firebase/app': 'commonjs @firebase/app',
'@firebase/firestore': 'commonjs @firebase/firestore',
};
}
},
},
};