Integrated Airtable into GraphQL with yarn and updated configuration as shown in the snippet below. Despite clearing cache and using sudo to restart, the data still doesn’t appear.
require('dotenv').config({ path: `.env.${process.env.NODE_ENV}` });
module.exports = {
plugins: [
{
resolve: 'gatsby-source-data',
options: {
apiKey: process.env.GATSBY_DATA_API,
connectionLimit: 5,
sources: [
{
dataBaseId: process.env.GATSBY_DATA_BASE_ID,
sourceName: 'Tasks',
mapping: { imageUrl: 'fileAsset' }
}
]
}
}
]
};