forked from popcorn-nantes/popcorn-nantes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
53 lines (51 loc) · 1.46 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
require('dotenv').config()
import { getSocialShareHeadersMeta } from './services/helpers.js'
// les informations par défaut pour les metatags à destination des réseaux sociaux
const ogTitle = 'Popcorn : trouvez un·e développeur·e freelance à Nantes'
const ogDescription =
'La plateforme avec (vraiment) 0% de commission pour tout le monde'
const ogUrl = process.env.POPCORN_BASE_URL
const ogImage = `${process.env.POPCORN_BASE_URL}/images/popcorn-500.jpg`
module.exports = {
env: {
POPCORN_BASE_URL: process.env.POPCORN_BASE_URL,
POPCORN_SLACK_WEBHOOK: process.env.POPCORN_SLACK_WEBHOOK
},
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: 'Popcorn',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
name: 'description',
content: ogDescription
},
...getSocialShareHeadersMeta({
title: ogTitle,
description: ogDescription,
image: ogImage,
url: ogUrl
})
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', type: 'text/css', href: '/css/bulma.min.css' }
]
},
/*
** Plugins to load before mounting the App
*/
plugins: ['~plugins/vue-lazyload'],
/*
** Nuxt.js modules
*/
modules: ['@nuxtjs/dotenv', 'nuxt-gustave'],
gustave: {
highlight: true,
importers: ['importers/persons.js', 'importers/pages.js']
}
}