-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathnuxt.config.js
More file actions
152 lines (149 loc) · 3.57 KB
/
nuxt.config.js
File metadata and controls
152 lines (149 loc) · 3.57 KB
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
export default {
env: {
NUXT_ENV_API_URL:
process.env.NUXT_ENV_API_URL || 'https://api.votdiaspora.ro/api',
HERE_MAPS_API_KEY: process.env.HERE_MAPS_API_KEY,
SHOW_DONATION_BUTTON: process.env.SHOW_DONATION_BUTTON === 'true',
},
/*
** Nuxt target
** See https://nuxtjs.org/api/configuration-target
*/
target: 'static',
/*
** Headers of the page
** See https://nuxtjs.org/api/configuration-head
*/
head: {
title: 'VotDiaspora',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content:
'Vot Diaspora este o platformă dezvoltată de Code for Romania care oferă rapid românilor din Diaspora informații despre cum pot vota la alegerile din anul 2024.',
},
{ property: 'og:title', content: 'Vot Diaspora' },
{
property: 'og:image',
content: 'https://votdiaspora.ro/og-image.png',
},
{
name: 'theme-color',
content: '#352245',
},
{
property: 'og:description',
content:
'Vot Diaspora este o platformă dezvoltată de Code for Romania care oferă rapid românilor din Diaspora informații despre cum pot vota la alegerile din anul 2024.',
},
{ property: 'og:url', content: 'https://votdiaspora.ro' },
{ property: 'og:type', content: 'website' },
],
link: [
{
rel: 'stylesheet',
href: 'https://js.api.here.com/v3/3.1/mapsjs-ui.css',
},
{ 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' },
],
script: [
{
src: 'https://js.api.here.com/v3/3.1/mapsjs-core.js',
},
{
src: 'https://js.api.here.com/v3/3.1/mapsjs-service.js',
},
{
src: 'https://js.api.here.com/v3/3.1/mapsjs-mapevents.js',
},
{
src: 'https://js.api.here.com/v3/3.1/mapsjs-ui.js',
},
],
},
/*
** Global CSS
*/
css: ['~/scss/style.scss'],
/*
** Plugins to load before mounting the App
** https://nuxtjs.org/guide/plugins
*/
plugins: [],
/*
** Auto import components
** See https://nuxtjs.org/api/configuration-components
*/
components: true,
/*
** Nuxt.js dev-modules
*/
buildModules: [
// Doc: https://github.com/nuxt-community/eslint-module
'@nuxtjs/eslint-module',
[
'@nuxtjs/google-analytics',
{
id: 'UA-81891329-1',
},
],
],
/*
** Nuxt.js modules
*/
modules: ['nuxt-i18n'],
i18n: {
detectBrowserLanguage: false,
locales: [
// {
// code: 'en',
// name: 'EN',
// file: 'en-US.js',
// },
// {
// code: 'hu',
// name: 'HU',
// file: 'hu-HU.js',
// },
{
code: 'ro',
name: 'RO',
file: 'ro-RO.js',
},
],
lazy: true,
langDir: 'lang/',
defaultLocale: 'ro',
vueI18n: {
fallbackLocale: 'en',
},
},
/*
** Build configuration
** See https://nuxtjs.org/api/configuration-build/
*/
build: {
transpile: [({ isServer }) => 'vue-typeahead-bootstrap'],
},
}