-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
59 lines (59 loc) 路 1.77 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
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
})
// const queries = require("./src/constants/algolia")
module.exports = {
siteMetadata: {
title: `Design Shop`,
description: `Gatsby Airtable Example. Built using Airtable, Algolia Search, Gatsby Background Image plugin and React Context API. Containts two sliders, real-time Airtable updates and submenus. Styled using Styled-Components. `,
author: `@sumeshmajhi`,
titleTemplate: `%s | Gatsby - Airtable`,
url: `https://gatsby-airtable-design-project.netlify.app/`,
image: `mainBcg.png`,
twitterUsername: `@MajhiRockzZ`,
},
plugins: [
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-styled-components`,
`gatsby-plugin-styled-components`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-airtable`,
options: {
apiKey: process.env.GATSBY_AIRTABLE_API,
concurrency: 5,
tables: [
{
baseId: process.env.GATSBY_AIRTABLE_BASE_ID,
tableName: `Projects`,
mapping: { image: `fileNode` },
},
{
baseId: process.env.GATSBY_AIRTABLE_BASE_ID,
tableName: `Customers`,
mapping: { image: `fileNode` },
},
],
},
},
{
resolve: `gatsby-plugin-algolia`,
options: {
appId: process.env.GATSBY_ALGOLIA_APP_ID,
apiKey: process.env.GATSBY_ALGOLIA_ADMIN_KEY,
indexName: process.env.GATSBY_ALGOLIA_INDEX_NAME,
queries: require('./src/constants/algolia'),
chunkSize: 10000,
},
},
],
}