From 0835c36dcad468c40994ab9da56df39d81e09640 Mon Sep 17 00:00:00 2001 From: divyakarippath Date: Wed, 22 Jul 2020 16:53:14 -0700 Subject: [PATCH] fix: minor fix to load the user dev proxy file (#1706) --- packages/xarc-app-dev/lib/dev-admin/redbird-proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xarc-app-dev/lib/dev-admin/redbird-proxy.js b/packages/xarc-app-dev/lib/dev-admin/redbird-proxy.js index 6c6d727d6f..98db3f50b1 100644 --- a/packages/xarc-app-dev/lib/dev-admin/redbird-proxy.js +++ b/packages/xarc-app-dev/lib/dev-admin/redbird-proxy.js @@ -243,7 +243,7 @@ const startProxy = inOptions => { const userFiles = ["archetype/config", "src", "test", "config"].map(x => `${x}/dev-proxy-rules`); const userDevProxyFile = userFiles.find(f => optionalRequire.resolve(Path.resolve(f))); - const userDevProxy = userDevProxyFile && require(userDevProxyFile); + const userDevProxy = userDevProxyFile && require(Path.resolve(userDevProxyFile)); const restart = async () => { // ensure user's proxy rules are refreshed