-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
40 lines (39 loc) · 946 Bytes
/
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
require("dotenv").config()
var proxy = require("http-proxy-middleware")
module.exports = {
plugins: [
{
resolve: `gatsby-theme-blog`,
options: {},
},
],
// Customize your site metadata:
siteMetadata: {
title: `Implementando REST con Gatsby`,
author: `Cristobal Aguirre @jcaguirre89`,
description: `Una pagina estatica con data dinamica`,
social: [
{
name: `twitter`,
url: `https://twitter.com/jcaguirre89`,
},
{
name: `github`,
url: `https://github.com/jcaguirre89`,
},
],
},
// for avoiding CORS while developing Netlify Functions locally
// read more: https://www.gatsbyjs.org/docs/api-proxy/#advanced-proxying
developMiddleware: app => {
app.use(
"/.netlify/functions/",
proxy({
target: "http://localhost:9000",
pathRewrite: {
"/.netlify/functions/": "",
},
})
)
},
}