-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
144 lines (143 loc) · 3.6 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
require('dotenv').config({
path: `.env`,
});
module.exports = {
siteMetadata: {
title: `Nayem Alam`,
description: `Official personal portfolio to document my journey, goals, objectives and learning experiences.`,
author: `@nayemalam`,
keywords: [
'full stack',
'electrical engineer',
'portfolio',
'developer',
'slam poet',
'designer',
],
social: [
{
name: `GitHub`,
url: `http://github.com/nayemalam/`,
},
{
name: `LinkedIn`,
url: `https://www.linkedin.com/in/nayemalam/`,
},
{
name: `Instagram`,
url: `https://www.instagram.com/nayemwizdom/`,
},
{
name: `Medium`,
url: `https://medium.com/@nayemalam`,
},
{
name: `email`,
url: `nayem.dev@gmail.com`,
},
],
siteUrl: `https://nayemalam.com`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blog`,
path: `${__dirname}/src/blog`,
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-highlight-code`,
options: {
terminal: 'carbon',
theme: 'blackboard',
},
},
],
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Nayem Alam Official Website`,
short_name: `NayemAlam`,
start_url: `/`,
background_color: `#43C6AC`,
theme_color: `#43C6AC`,
display: `minimal-ui`,
icon: `src/images/favicon.png`, // This path is relative to the root of the site.
},
},
`gatsby-plugin-sass`,
{
resolve: `gatsby-plugin-layout`, // This plugin adds the following component across all pages
options: {
component: require.resolve(`./src/components/layout.js`),
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: `UA-165824010-2`,
},
},
{
resolve: `gatsby-plugin-sitemap`,
options: {
exclude: [`/admin`, `/tags/links`], // not implemented yet
},
},
{
resolve: 'gatsby-plugin-robots-txt',
options: {
policy: [{ userAgent: '*', allow: '/' }],
},
},
// {
// // backend uri: https://nayem-blog-backend.herokuapp.com/admin
// resolve: 'gatsby-source-strapi',
// options: {
// apiURL: process.env.API_URL || 'http://localhost:1337',
// contentTypes: ['article', 'category', 'writer'],
// singleTypes: [`homepage`, `global`],
// queryLimit: 1000,
// },
// },
'gatsby-plugin-offline',
{
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`,
prefix: `gatsby-source-cloudinary/`,
},
},
{
resolve: 'gatsby-plugin-firebase',
options: {
credentials: {
apiKey: process.env.FIREBASE_API_KEY || 'none',
databaseURL: process.env.FIREBASE_DATABASE_URL || 'none',
projectId: process.env.FIREBASE_PROJECT_ID || 'none',
appId: process.env.FIREBASE_APPID || 'none',
},
},
},
],
};