forked from r-spacex/spacexstats-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
65 lines (60 loc) · 1.5 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
63
64
65
const siteUrl = `https://www.spacexstats.xyz`;
module.exports = {
siteMetadata: {
title: `SpaceX Stats`,
description: `SpaceX Stats is the ultimate place to keep track of SpaceX's achievements into providing cheaper access to space and making human life multiplanetary.`,
author: `Albéric Trancart`,
siteUrl,
},
plugins: [
// Codebase
`gatsby-plugin-typescript`,
`gatsby-plugin-tsconfig-paths`,
`gatsby-plugin-eslint`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
// Custom plugin
`gatsby-source-spacex-api`,
// Assets
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-styled-components`,
// SEO
`gatsby-plugin-robots-txt`,
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-canonical-urls`,
options: {
siteUrl,
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: `UA-108091199-1`,
head: false,
},
},
// Offline capability
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `SpaceX Stats`,
short_name: `SpaceX Stats`,
start_url: `/`,
background_color: `#005189`,
theme_color: `#005189`,
display: `standalone`,
icon: `static/oglogo.jpg`,
},
},
`gatsby-plugin-remove-serviceworker`,
`gatsby-plugin-netlify`,
],
};