-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
47 lines (45 loc) · 1.21 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
require("dotenv").config({
path: `.env`,
})
const isProd = process.env.NODE_ENV === "production"
const previewEnabled = (process.env.GATSBY_IS_PREVIEW || "false").toLowerCase() === "true"
module.exports = {
siteMetadata: {
title: `osrodek-tk`,
siteUrl: `https://osrodektk.pl`
},
plugins: [
{
resolve: `gatsby-source-sanity`,
options: {
projectId: process.env.SANITY_PROJECT_ID,
dataset: process.env.SANITY_DATASET,
token: process.env.SANITY_TOKEN,
graphqlTag: 'default',
watchMode: !isProd,
overlayDrafts: !isProd || previewEnabled,
},
},
"gatsby-plugin-image",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
"gatsby-plugin-styled-components",
"gatsby-plugin-sitemap",
{
resolve: 'gatsby-plugin-manifest',
options: {
name: `Ośrodek zdrowia w Turośni Kościelnej`,
short_name: `Ośrodek Zdrowia`,
lang: `pl`,
display: `standalone`,
icon: `src/resources/images/logo.webp`,
start_url: `/`,
background_color: `#fff`,
theme_color: `#00259C`,
},
},
`gatsby-plugin-robots-txt`,
`gatsby-plugin-sitemap`
],
trailingSlash: "never"
};