-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
83 lines (82 loc) · 2.07 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
require("dotenv").config({
path: `.env`,
})
module.exports = {
siteMetadata: {
title: `Beskydské túry`,
description: `Turistické trasy v Beskydech.`,
author: `@sarkachwastkova`,
image: `src/images/thumbnail_lg.png`,
},
plugins: [
`gatsby-plugin-typescript`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-plugin-image`,
`gatsby-plugin-extract-schema`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-plugin-sharp`,
options: {
defaults: {
formats: [`auto`, `webp`],
placeholder: `dominantColor`,
quality: 100,
breakpoints: [420, 576, 768, 992, 1200, 1920],
backgroundColor: `transparent`,
tracedSVGOptions: {},
blurredOptions: {},
jpgOptions: {},
pngOptions: {},
webpOptions: {},
avifOptions: {},
},
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `beskydske-tury`,
start_url: `/`,
background_color: `#fcf7d5`,
theme_color: `#fcf7d5`,
icon: `src/images/favicons/favicon144.png`,
display: `minimal-ui`,
},
},
`gatsby-plugin-styled-components`,
`gatsby-transformer-json`,
// !Strapi
{
resolve: "gatsby-source-strapi",
options: {
maxParallelRequests: 500,
apiURL: process.env.API_URL || "http://localhost:1337",
accessToken: process.env.API_TOKEN,
collectionTypes: ["user", "coords",
{
singularName: "trail",
queryParams: {
publicationState:
process.env.GATSBY_IS_PREVIEW === "true" ? "preview" : "live",
populate: "*",
queryLimit: 5000,
},
}
],
// singleTypes: [`global`],
queryLimit: 5000,
},
},
{
resolve: `gatsby-plugin-create-client-paths`,
options: { prefixes: [`/trasy/*`] },
}
],
}