代码拉取完成,页面将自动刷新
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/`,
},
},
],
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。