-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
136 lines (130 loc) · 3.39 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`, // or '.env'
debug: false,
})
module.exports = {
/* Your site config here */
plugins: [
"gatsby-plugin-emotion",
"gatsby-plugin-theme-ui",
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-plugin-manifest",
options: {
name: "Miguel Cabrera",
short_name: "mcabsan",
start_url: "/",
background_color: "#0f0f0f",
theme_color: "#0f0f0f",
display: "standalone",
icon: "static/favicon.png",
crossOrigin: "anonymous",
},
},
{
resolve: `gatsby-plugin-intl`,
options: {
// language JSON resource path
path: `${__dirname}/src/intl`,
// supported language
languages: ["en", "es"],
// language file path
defaultLanguage: "en",
// option to redirect to `/ko` when connecting `/`
redirect: true,
},
},
{
resolve: `gatsby-source-datocms`,
options: {
// You can find your read-only API token under the Settings > API tokens
// section of your administrative area:
apiToken: process.env.DATO_API_KEY,
// The project environment to read from. Defaults to the primary environment:
environment: "main",
// If you are working on development/staging environment, you might want to
// preview the latest version of records instead of the published one:
previewMode: false,
// Disable automatic reloading of content when some change occurs on DatoCMS:
disableLiveReload: false,
// Custom API base URL (most don't need this)
// apiUrl: 'https://site-api.datocms.com',
// Setup locale fallbacks
// In this example, if some field value is missing in Italian, fall back to English
localeFallbacks: {
es: ["en"],
},
},
},
{
resolve: "gatsby-alias-imports",
options: {
pages: "src/pages",
components: "src/components",
hooks: "src/hooks",
assets: "src/assets",
services: "src/services",
utils: "src/utils",
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [`.mdx`, `.md`],
},
},
],
siteMetadata: {
title: "<MiguelCabrera />",
menuLinks: [
{
key: "posts",
path: "/posts",
},
{
key: "about",
path: "/about",
},
],
languages: [
{ key: "es", name: "Español" },
{ key: "en", name: "English" },
],
author: "Miguel Cabrera",
location: "Canary Islands",
description: "A space where organize Miguel's ideas",
siteUrl: "https://mcabsan.dev",
image: "/images/logo.jpg",
social: {
twitter: {
user: "@mcabsan",
url: "https://twitter.com/mcabsan",
},
github: {
user: "Myugen",
url: "https://github.com/Myugen",
},
linkedin: {
user: "Miguel Ignacio Cabrera San Gil",
url: "https://linkedin.com/in/miguel-cabrera-san-gil",
},
},
googleFonts: ["Patua One", "Cabin Condensed"],
keywords: [
"Miguel Cabrera",
"Dev",
"Blog",
"JavaScript",
"JS",
"TypeScript",
"TS",
"Golang",
"GO",
],
},
}