-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
85 lines (82 loc) · 2.07 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
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`
});
const { GATSBY_API_URL, GATSBY_BROWSER_API_URL } = process.env;
if (!GATSBY_API_URL) {
throw new Error("GATSBY_API_URL is not defined in environment!");
}
module.exports = {
siteMetadata: {
title: "Ramil Amparo",
description:
"This is my simple portfolio site to show off my skills and experience.",
author: "Ramil Amparo"
},
plugins: [
/**
* Webapp manifest part of the progressive web app specification.
* Allows user to add the site to their home screen on most mobile browsers.
*/
{
resolve: "gatsby-plugin-manifest",
options: {
name: "Ram's Personal Website",
short_name: "Ram's Website",
start_url: "/",
background_color: "#070707",
theme_color: "#070707",
display: "standalone",
icons: [
{
src: "public/android-chrome-192x192.png",
sizes: "192x192",
type: "image/png"
},
{
src: "public/android-chrome-512x512.png",
sizes: "512x512",
type: "image/png"
}
]
}
},
{
resolve: "gatsby-plugin-apollo",
options: {
uri: `${GATSBY_BROWSER_API_URL}/graphql`
}
},
{
resolve: "gatsby-source-graphql",
options: {
// Arbitrary name for the remote schema Query type
typeName: "STRAPI",
// Field under which the remote schema will be accessible. You'll use this in your Gatsby query
fieldName: "strapi",
// Url to query from
url: `${GATSBY_API_URL}/graphql`
}
},
/** Make google fonts with Roboto font and material icons available. */
{
resolve: "gatsby-plugin-google-fonts",
options: {
fonts: ["material icons", "roboto:300,400,500,700", "lato:300, 400, 700"]
}
},
/**
* Enables components which lives above pages
* and persists on page changes.
*/ {
resolve: "gatsby-plugin-layout",
options: {
component: require.resolve("./src/components/utils/PageContainer.tsx")
}
},
"gatsby-plugin-eslint",
"gatsby-plugin-offline",
"gatsby-plugin-react-helmet",
"gatsby-plugin-typescript",
"gatsby-plugin-styled-components"
]
};