From 751261a173c2f6ac7fac61babeef1a23343056af Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 4 Jul 2020 14:01:54 -0500 Subject: [PATCH] Local dev: proxy patron endpoints again --- webpack/development.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webpack/development.js b/webpack/development.js index 98ce3e718..7cfab6de5 100644 --- a/webpack/development.js +++ b/webpack/development.js @@ -9,6 +9,7 @@ const { settings, output } = require('./configuration'); const watchOptions = {}; const backendUrl = process.env.BACKEND_URL || 'http://localhost:4000'; +const patronUrl = process.env.PATRON_URL || 'http://localhost:3037'; const secureProxy = !(process.env.PROXY_HTTPS_INSECURE === 'true'); const backendEndpoints = [ @@ -25,6 +26,10 @@ const backendEndpoints = [ const makeProxyConfig = () => { let proxyConfig = {}; + proxyConfig['/api/patron'] = { + target: patronUrl, + secure: secureProxy, + }; backendEndpoints.map(endpoint => { proxyConfig[endpoint] = { target: backendUrl,