Skip to content

Commit

Permalink
fix: minor fix to load the user dev proxy file (electrode-io#1706)
Browse files Browse the repository at this point in the history
  • Loading branch information
divyakarippath authored and ImgBotApp committed Aug 20, 2020
1 parent fc04058 commit 0835c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xarc-app-dev/lib/dev-admin/redbird-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0835c36

Please sign in to comment.