-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathgatsby-config.js
64 lines (63 loc) · 1.75 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
require('dotenv').config()
/* eslint-disable @typescript-eslint/camelcase */
module.exports = {
siteMetadata: {
title: 'WebSheets',
titleTemplate: '%s | WebSheets',
description: 'Create listing websites with Google Sheets data',
author: 'sohafidz',
url: 'https://websheets.co', // No trailing slash allowed!
image: '/app-banner.png', // Path to your image you placed in the 'static' folder
twitterUsername: 'sohafidz',
},
plugins: [
`gatsby-plugin-postcss`,
`gatsby-plugin-typescript`,
`gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
{
resolve: 'gatsby-source-google-sheets-flexible',
options: {
apiKey: process.env.GATSBY_GOOGLE_CREDENTIALS,
spreadsheetUrl: process.env.GATSBY_SHEET_URL,
tabName: 'site',
cellRange: 'A1:B23',
majorDimension: 'COLUMNS',
},
},
{
resolve: 'gatsby-source-google-sheets-flexible',
options: {
apiKey: process.env.GATSBY_GOOGLE_CREDENTIALS,
spreadsheetUrl: process.env.GATSBY_SHEET_URL,
tabName: 'listing',
cellRange: 'A1:H1000',
majorDimension: 'ROWS',
},
},
{
resolve: 'gatsby-plugin-google-gtag',
options: {
trackingIds: [process.env.GATSBY_GA_TRACKING_ID],
gtagConfig: {
anonymize_ip: true,
},
pluginConfig: {
head: true,
},
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `WebSheets`,
short_name: `WebSheets`,
start_url: `/`,
background_color: `#049663`,
theme_color: `#049663`,
display: `standalone`,
icon: `static/app-icon.png`, // This path is relative to the root of the site.
},
},
],
}