netlify-faunadb-example2/src/setupProxy.js
DavidWells 65522c08ec Merge branch 'master' of github.com:netlify/netlify-faunadb-example
# Conflicts:
#	package.json
#	src/App.js
#	src/setupProxy.js
2019-01-07 12:56:01 -08:00

12 lines
No EOL
246 B
JavaScript

const proxy = require('http-proxy-middleware')
module.exports = function(app) {
app.use(
proxy('/.netlify/functions/', {
target: 'http://localhost:9000/',
pathRewrite: {
'^/\\.netlify/functions': ''
}
})
)
}