-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
76 lines (70 loc) · 2.23 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/gatsby-config/
*/
// init. environment variables
require('dotenv').config();
const { githubApiQuery } = require('./github-api')
module.exports = {
/* Your site config here */
siteMetadata: {
title: 'Mason Media',
description: 'Mason Media is the web development studio of Toronto frontend developer, UI/graphic designer, and copywriter Andrew Mason. I build websites, create custom imagery, and write UX content.',
author: 'Andrew Mason',
robots: 'index,follow',
url: 'https://andrewmasonmedia.com',
type: 'website',
image: 'mm_browser_social.png',
imageAlt: 'An image of the Mason Media homepage featuring a sunset landscape photo and the site title.',
},
plugins: [
`gatsby-plugin-sass`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-smoothscroll`,
`gatsby-plugin-remove-trailing-slashes`,
`gatsby-plugin-transition-link`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/src/pages`,
},
},
{ resolve: `gatsby-source-filesystem`,
options: {
path: `./src/images/`,
}
},
{
resolve:`gatsby-source-cloudinary`,
options: {
cloudName: process.env.CLOUDINARY_CLOUD_NAME,
apiKey: process.env.CLOUDINARY_API_KEY,
apiSecret: process.env.CLOUDINARY_API_SECRET,
resourceType: `image`,
description: true,
prefix: `samples` ,
context: true,
tags: true,
maxResults: 50
}
},
{
resolve: `gatsby-source-github-api`,
options: {
url: "https://api.github.com/graphql", // default Github GraphQL v4 API endpoint
// token: required by the GitHub API
token: process.env.GITHUB_PERSONAL_ACCESS_TOKEN,
// GraphQLquery: defaults to a search query
graphQLQuery: githubApiQuery,
// variables: defaults to variables needed for a search query
variables: {
github_login: process.env.GITHUB_LOGIN
}
}
},
],//end plugins
}