-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathgatsby-config.js
102 lines (102 loc) · 2.55 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
91
92
93
94
95
96
97
98
99
100
101
102
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: [
{
resolve: "@sentry/gatsby",
options: {
dsn: "https://eb3773c69377443b98fa857cde350722@o1362387.ingest.sentry.io/6653811",
sampleRate: 1.0,
},
},
`gatsby-transformer-json`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-remove-fingerprints`,
{
resolve: `gatsby-plugin-typescript`,
options: {
allowDeclareFields: true
}
},
`gatsby-plugin-sitemap`,
{
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' || process.env.GITHUB_REF === 'refs/heads/beta',
}
},
{
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
}
}
]
};