-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathgatsby-config.js
82 lines (81 loc) · 1.97 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
require("dotenv").config()
module.exports = {
siteMetadata: {
links: {
contact: "mailto:contact@me.com",
facebook: "https://www.facebook.com",
linkedin: "https://www.linkedin.com",
twitter: "https://www.twitter.com",
},
locale: "en",
title: "Travel destinations",
},
plugins: [
{
resolve: `gatsby-plugin-postcss`,
options: {
postCssPlugins: [require("tailwindcss"), require("autoprefixer")],
},
},
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-plugin-modal-routing`,
options: {
// See http://reactcommunity.org/react-modal/#usage
modalProps: {
style: {
overlay: {
backgroundColor: `rgba(0, 0, 0, 0.5)`,
},
content: {
position: `absolute`,
border: `none`,
background: `none`,
padding: 0,
top: 0,
bottom: 0,
right: 0,
left: 0,
overflow: `auto`,
WebkitOverflowScrolling: `touch`,
},
},
},
},
},
{
resolve: `gatsby-source-airtable`,
options: {
apiKey: process.env.AIRTABLE_API_KEY,
tables: [
{
baseId: process.env.AIRTABLE_BASE_ID,
tableName: process.env.AIRTABLE_TABLE_NAME,
mapping: { image: "fileNode" },
},
],
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Travel Destinations`,
short_name: `Travel Destinations`,
start_url: `/`,
background_color: `#fff`,
theme_color: `#4299e1`,
display: `standalone`,
icon: `src/images/icon.png`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images/`,
},
},
],
}