This repository has been archived by the owner on Jun 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.js
102 lines (87 loc) · 2.16 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
import { PUBLIC_PATH } from './services/configuration-service.js'
export default {
build: {
publicPath: PUBLIC_PATH
},
buildModules: [
'@nuxtjs/eslint-module',
'@nuxtjs/pwa',
'@nuxt/components'
],
components: true,
css: [
'@fortawesome/fontawesome-svg-core/styles.css'
],
head: {
title: 'cmpct.io | Create & share safer short links',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'cmpct.io | Share safer short links | Create safer, better links you can share' },
{ name: 'theme-color', content: '#000000' },
{ name: 'google-site-verification', content: 'Zih5ZaiWwv-IozG3zKriVzfzz9ZjMZ-OgoFraU0sABY' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
i18n: {
locales: ['en', 'fr', 'es'],
defaultLocale: 'en',
vueI18n: {
fallbackLocale: 'en',
messages: {
}
}
},
loading: { color: '#fff' },
modules: [
'@nuxtjs/axios',
'@nuxtjs/robots',
'nuxt-webfontloader',
['nuxt-i18n', {
vueI18nLoader: true,
strategy: 'no_prefix',
detectBrowserLanguage: {
useCookie: true,
alwaysRedirect: true
}
}],
['cookie-universal-nuxt'],
'@nuxtjs/sitemap'
],
plugins: [
'~/plugins/fontawesome.plugin.js',
'~/plugins/statistics.client.js'
],
pwa: {
manifest: {
name: 'cmpct.io',
short_name: 'cmpct.io',
description: 'Create shorter, safer & better links that you can share with cmpct - the free custom URL shortener that lets you see where you\'re going before you click.',
lang: 'en',
display: 'standalone',
start_url: 'https://cmpct.io',
background_color: '#000000',
theme_color: '#000000'
}
},
robots: () => {
return {
UserAgent: '*',
Allow: '/',
Sitemap: 'https://cmpct.io/sitemap.xml'
}
},
server: {
host: '0.0.0.0'
},
sitemap: {
hostname: 'https://cmpct.io'
},
webfontloader: {
google: {
families: ['Tomorrow:400,400&display=swap']
}
}
}