-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] ensure path works on windows because path.join doesnt like URLs
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
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
ed73f06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit broke proxy-ing. I'm ending up with
outgoing.path
which has values like///static/images/logout-icon.png
becausetargetPath
was already/
.ed73f06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am seeing the same, this has completely broken my app - good reason to use npm shrinkwrap in the future.
ed73f06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have had similar issues with using
path.join
on Windows when I intended to use it from urls. Unfortunately there is nourl.join
so I use the following utility:This is working fine in production in loopback-explorer. I have turned it into PR #699.