1 Star 0 Fork 1

lidachao1122/gatsby-airtable-listing

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gatsby-config.js 1.97 KB
一键复制 编辑 原始数据 按行查看 历史
lidachao1122 提交于 2021-04-06 18:10 . upload example
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/`,
},
},
],
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lidachao1122/gatsby-airtable-listing.git
git@gitee.com:lidachao1122/gatsby-airtable-listing.git
lidachao1122
gatsby-airtable-listing
gatsby-airtable-listing
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385