-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
95 lines (87 loc) · 2.82 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
var path = require("path");
var { createProxyMiddleware } = require("http-proxy-middleware");
// Load any configured environment-specific variables.
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`
});
module.exports = {
siteMetadata: {
title: "Daniel Brady",
description: "my own little slice of the internet",
siteUrl: "https://daniel13rady.com/",
},
/* NOTE(dabrady) Uncomment to avoid CORS issues if ever developing Netlify functions locally */
/* @see https://www.gatsbyjs.org/docs/api-proxy/#advanced-proxying */
// developMiddleware: function proxyNetlifyLambdas(app) {
// app.use(
// "/.netlify/functions/",
// createProxyMiddleware({
// target: "http://localhost:9000",
// pathRewrite: {
// "/.netlify/functions/": ""
// }
// })
// );
// },
plugins: [
{
// This plugin allows us to alias common import paths to short names.
resolve: "gatsby-plugin-root-import",
options: {
"@components": path.resolve(__dirname, "src/components"),
"@content": path.resolve(__dirname, "src/content"),
"@hooks": path.resolve(__dirname, "src/utils/hooks"),
"@templates": path.resolve(__dirname, "src/templates"),
"@utils": path.resolve(__dirname, "src/utils"),
"@styles": path.resolve(__dirname, "src/styles"),
"@wip": path.resolve(__dirname, "wip")
}
},
"gatsby-plugin-netlify",
// This plugin adds support for the CSS-in-JS library Theme UI.
"gatsby-plugin-theme-ui",
// This plugin intercepts all local links that have not been created in
// React using gatsby-link, and replaces their behavior with that of the
// gatsby-link navigate. This avoids the browser having to refresh the
// whole page when navigating between local pages
"gatsby-plugin-catch-links",
// This plugin lets us write JSX embedded inside Markdown.
{
resolve: "gatsby-plugin-mdx",
options: {
extensions: ['.md', '.mdx'],
gatsbyRemarkPlugins: [
{
resolve: "gatsby-remark-smartypants",
options: {
quotes: true,
ellipses: true,
dashes: "oldschool",
},
},
],
},
},
// This plugin parses local files into 'File' nodes for further manipulation
// by transformers within our application.
{
resolve: "gatsby-source-filesystem",
options: {
name: "content",
path: `${__dirname}/src/content`
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: "a web site",
short_name: "site",
start_url: "/",
display: "minimal-ui",
icon: 'src/images/logo_black.svg'
}
},
"gatsby-plugin-offline",
"gatsby-plugin-react-helmet",
]
};