-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathgatsby-config.js
39 lines (37 loc) · 1.4 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
require('dotenv').config()
module.exports = {
siteMetadata: {
title: "Gatsby&Kontent Starter - Photon",
author: "Ondřej Chrastina <[email protected]> (https://github.com/Simply007)",
description: "A Gatsby.js Starter using Kentico Kontent based on Photon by HTML5 UP"
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: '@kentico/gatsby-source-kontent',
options: {
projectId: process.env.KONTENT_PROJECT_ID, // Fill in your Project ID
// if false used authorization key for secured API
usePreviewUrl: process.env.KONTENT_PREVIEW_ENABLED && process.env.KONTENT_PREVIEW_ENABLED.toLowerCase() === 'true',
authorizationKey: process.env.KONTENT_PREVIEW_ENABLED && process.env.KONTENT_PREVIEW_ENABLED.toLowerCase() === 'true'
? process.env.KONTENT_PREVIEW_KEY
: undefined,
languageCodenames: process.env.KONTENT_LANGUAGE_CODENAMES.split(',').map(lang => lang.trim()),
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: 'kontent-gatsby-template',
short_name: 'kc-gatsby',
start_url: '/',
background_color: '#0087DC',
theme_color: '#0087DC',
display: 'minimal-ui',
icon: 'src/assets/images/kentico-kontent.png', // This path is relative to the root of the site.
},
},
'gatsby-plugin-sass',
'gatsby-plugin-offline'
],
}