This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
gatsby-config.js
62 lines (61 loc) · 1.59 KB
/
gatsby-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
const url = process.env.ROOT_URL || "https://www.paravotar.org"
const {
NODE_ENV,
URL: NETLIFY_SITE_URL = url,
DEPLOY_PRIME_URL: NETLIFY_DEPLOY_URL = NETLIFY_SITE_URL,
CONTEXT: NETLIFY_ENV = NODE_ENV,
} = process.env
const isNetlifyProduction = NETLIFY_ENV === "production"
const siteUrl = isNetlifyProduction ? NETLIFY_SITE_URL : NETLIFY_DEPLOY_URL
module.exports = {
siteMetadata: {
siteUrl,
title: `Para Votar`,
description: `Inscríbete, Practica y Sal a Votar`,
author: `@Code4PuertoRico`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Para Votar`,
short_name: `Para Votar`,
start_url: `/`,
background_color: `#917149`,
theme_color: `#917149`,
display: `minimal-ui`,
icon: `static/meta/favicon.png`, // This path is relative to the root of the site.
},
},
`gatsby-plugin-typescript`,
`gatsby-plugin-postcss`,
{
resolve: "gatsby-plugin-react-axe",
options: {
// Integrate react-axe in production. This defaults to false.
showInProduction: false,
},
},
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /\.inline\.svg$/,
},
},
},
`gatsby-plugin-offline`,
`gatsby-plugin-lodash`,
`gatsby-plugin-no-sourcemaps`,
],
}