forked from stt-datacore/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
90 lines (90 loc) · 2.2 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
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
require('dotenv').config();
module.exports = {
siteMetadata: {
title: 'Star Trek Timelines DataCore',
titleTemplate: `%s - Star Trek Timelines DataCore`,
description: `DataCore is a companion resource to Tilting Point's Star Trek Timelines game. It's designed as a compendium of data, statistics and assets, both extracted from the game as well as user generated.`,
baseUrl: 'https://datacore.app',
siteUrl: 'https://datacore.app'
},
plugins: [
`gatsby-transformer-json`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-remove-fingerprints`,
`gatsby-plugin-sitemap`,
`gatsby-plugin-typescript`,
{
resolve: 'gatsby-transformer-remark',
options: {
excerpt_separator: `<!-- end -->`,
}
},
{
resolve: 'gatsby-plugin-purge-cloudflare-cache',
options: {
token: process.env.CLOUDFLARE_TOKEN,
zoneId: process.env.CLOUDFLARE_ZONE_ID,
condition: (api, options) => process.env.GITHUB_REF === 'refs/heads/master',
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'pages',
path: `${__dirname}/static/pages/`
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'crew',
path: `${__dirname}/static/crew/`
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'structured',
path: `${__dirname}/static/structured/`,
ignore: [
'**/events/*',
'**/eventlogs/*',
'**/collections.json',
'**/dilemmas.json',
'**/disputes.json',
'**/event_instances.json',
'**/event_leaderboards.json',
'**/factions.json',
'**/items.json',
'**/keystones.json',
'**/misc_stats.json',
'**/missions.json',
'**/missionsfull.json',
'**/quests.json',
'**/ship_schematics.json',
'**/upcomingevents.json'
]
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'announcements',
path: `${__dirname}/static/announcements/`
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Star Trek Timelines DataCore`,
short_name: `DataCore`,
start_url: `/`,
background_color: `#3A3F44`,
theme_color: `#272B30`,
display: `standalone`,
icon: `src/images/logo.svg`,
include_favicon: true
}
}
]
};