This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/packExternalModules.js b/lib/packExternalModules.js | |
index f45f6a6827e55c0363d005ed0a2d012cc60b3d46..0dd66e50edb29ca4861749cb65ece7fef51f1969 100644 | |
--- a/lib/packExternalModules.js | |
+++ b/lib/packExternalModules.js | |
@@ -335,10 +335,13 @@ module.exports = { | |
// (1.a.1) Create a package.json | |
const compositePackage = _.defaults( | |
{ | |
- name: this.serverless.service.service, | |
+ name: `${this.serverless.service.service}-dependencies`, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createProxyServer } from 'http-proxy'; | |
import url from 'url'; | |
import _ from 'lodash'; | |
module.exports = app => { | |
const proxy = createProxyServer(); | |
app.all('/api/v1/*', (req, res) => { | |
const path = _.drop(req.url.split('/'), 3); | |
proxy.proxyRequest(req, res, { | |
target: url.resolve('YOUR URL', path.join('/')), |