-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
130 lines (129 loc) · 3.36 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
require('dotenv-defaults/config');
module.exports = {
siteMetadata: {
title: 'Sirus Teknologi Utama',
titleTemplate: '%s · Ekosistem Layanan Kesehatan Berkelanjutan',
description:
'Suspendisse potenti. Donec auctor quam et tortor condimentum, volutpat facilisis lorem facilisis.',
url: process.env.BASE_URL,
siteUrl: process.env.BASE_URL,
image: 'images/banner.jpg',
logo: 'images/sirus-logo.png',
},
plugins: [
// code
'gatsby-plugin-typescript',
// style & design system
{
resolve: 'gatsby-plugin-typography',
options: {
pathToConfigModule: 'src/utils/typography',
},
},
'gatsby-plugin-emotion',
// assets
'gatsby-image',
'gatsby-plugin-image',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-svgr',
{
resolve: 'gatsby-plugin-nprogress',
options: {
// Setting a color is optional.
color: '#fe553a',
// Disable the loading spinner.
showSpinner: false,
},
},
// data source
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'content',
path: `${__dirname}/src/content/`,
},
},
{
resolve: 'gatsby-source-ghost',
options: {
apiUrl: process.env.GHOST_API_URL,
contentApiKey: process.env.GHOST_CONTENT_API_KEY,
version: 'v3',
},
},
{
resolve: 'gatsby-transformer-rehype',
options: {
filter: node => node.internal.type === `GhostPost`,
source: node => node.html,
plugins: [
{
resolve: 'gatsby-rehype-prismjs',
},
{
resolve: 'gatsby-rehype-inline-images',
},
],
},
},
{
resolve: 'ghost-images',
options: {
lookup: [
{
type: 'GhostPost',
imgTags: ['feature_image'],
},
{
type: 'GhostTag',
imgTags: ['feature_image'],
},
{
type: 'GhostAuthor',
imgTags: ['profile_image', 'cover_image'],
},
{
type: 'GhostSettings',
imgTags: ['cover_image'],
},
],
verbose: true,
},
},
{
resolve: 'gatsby-source-prismic',
options: {
repositoryName: process.env.PRISMIC_REPO_NAME,
accessToken: process.env.PRISMIC_ACCESS_TOKEN,
schemas: {
homepage: require('./src/utils/prismic-schemas/homepage.json'),
contact: require('./src/utils/prismic-schemas/contact.json'),
page: require('./src/utils/prismic-schemas/page.json'),
product: require('./src/utils/prismic-schemas/product.json'),
menu: require('./src/utils/prismic-schemas/menu.json'),
},
},
},
{
resolve: 'gatsby-plugin-algolia',
options: {
appId: process.env.GATSBY_ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_ADMIN_KEY,
queries: require("./src/utils/algolia-queries")
}
},
// SEO & marketing
'gatsby-plugin-sitemap',
'gatsby-plugin-react-helmet',
'gatsby-plugin-react-helmet-async',
{
resolve: 'gatsby-plugin-google-tagmanager',
options: {
id: process.env.GTM_ID,
includeInDevelopment: false,
routeChangeEventName: 'page-route-changed',
},
},
],
};