12 lines
No EOL
249 B
JavaScript
12 lines
No EOL
249 B
JavaScript
const proxy = require('http-proxy-middleware');
|
|
|
|
module.exports = function(app) {
|
|
app.use(
|
|
proxy('/.netlify/functions/', {
|
|
target: 'http://localhost:9000/',
|
|
pathRewrite: {
|
|
'^/\\.netlify/functions': ''
|
|
}
|
|
})
|
|
);
|
|
}; |