-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
87 lines (87 loc) · 2.27 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
const data = require("./src/data/data");
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
url: "https://viportfolio.gatsbyjs.io/",
title: "Contentful with Gatsby",
author: "@ThiKieuViNguye1",
image: "/profile.jpg",
description: "Building portfolio powered by Contentful and GatsbyJs",
keywords:
"portfolio, GatsbyJS, Contentful, Styled Component, Responsive Design",
},
plugins: [
{
resolve: `gatsby-source-contentful`,
options: {
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
spaceId: process.env.CONTENTFUL_SPACEID,
},
},
`gatsby-plugin-preact`,
`gatsby-plugin-styled-components`,
`gatsby-plugin-gatsby-cloud`,
`gatsby-plugin-image`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-preact`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: "images",
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-github-api`,
options: {
token: process.env.GATSBY_GITHUB_API_TOKEN,
graphQLQuery: data.githubApiQuery,
},
},
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: ["Encode Sans Expanded"],
display: "swap",
},
},
{
resolve: `gatsby-plugin-scroll-indicator`,
options: {
// set the color you want for your progress bar here
color: "#177629",
// set the height of the scroll indicator
height: "4px",
// Set specific paths where you want the scroll indicator using regex
paths: ["/"],
// Configure the z-index of the indicator element
zIndex: `9999`,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `ViPortfolio`,
short_name: `ViPortfolio`,
start_url: `/`,
background_color: `#212121`,
theme_color: `#177629`,
display: `standalone`,
icon: `src/images/avatar.webp`,
icon_options: {
purpose: `any maskable`,
},
},
},
{
resolve: `gatsby-plugin-offline`,
options: {
precachePages: [`/`, `/projects/*`],
},
},
],
};