2018-11-22 00:01:38 +01:00
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
module.exports = [
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-source-filesystem',
|
|
|
|
options: {
|
2020-07-11 11:42:37 +02:00
|
|
|
name: 'articles',
|
|
|
|
path: path.join(__dirname, '..', 'content', 'articles')
|
2018-11-22 00:01:38 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-source-filesystem',
|
|
|
|
options: {
|
|
|
|
name: 'photos',
|
|
|
|
path: path.join(__dirname, '..', 'content', 'photos')
|
|
|
|
}
|
|
|
|
},
|
2021-02-28 22:14:36 +01:00
|
|
|
{
|
|
|
|
resolve: 'gatsby-source-filesystem',
|
|
|
|
options: {
|
|
|
|
name: 'links',
|
|
|
|
path: path.join(__dirname, '..', 'content', 'links')
|
|
|
|
}
|
|
|
|
},
|
2018-11-22 00:01:38 +01:00
|
|
|
{
|
|
|
|
resolve: 'gatsby-source-filesystem',
|
|
|
|
options: {
|
|
|
|
name: 'media',
|
|
|
|
path: path.join(__dirname, '..', 'content', 'media')
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-source-filesystem',
|
|
|
|
options: {
|
|
|
|
name: 'images',
|
|
|
|
path: path.join(__dirname, '..', 'src', 'images')
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-source-graphql',
|
|
|
|
options: {
|
|
|
|
typeName: 'GitHub',
|
|
|
|
fieldName: 'github',
|
|
|
|
url: 'https://api.github.com/graphql',
|
|
|
|
headers: {
|
2019-11-17 13:11:42 +01:00
|
|
|
Authorization: `bearer ${process.env.GATSBY_GITHUB_TOKEN}`
|
2018-11-22 00:01:38 +01:00
|
|
|
},
|
|
|
|
// Additional options to pass to node-fetch
|
|
|
|
fetchOptions: {},
|
|
|
|
refetchInterval: 300 // 5 min.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|