Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: @fly/proxy for sending requests to origin servers #81

Merged
merged 3 commits into from
May 21, 2018
Merged

Conversation

mrkurt
Copy link
Member

@mrkurt mrkurt commented May 15, 2018

This is used by adding require '@fly/proxy' to apps, which pulls in some extra js with webpack to handle proxied requests.

* origin("https://somehostname.com/path2/to/document.html")
* ```
*/
rewritePath?: string,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this option confusing.

I usually associate "rewrite" like "replace". Needs 2 arguments in my opinion. Some kind of "from" and "to".

Also, a regex would be nice. Hell, I guess it should act just like String.prototype.replace!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't really want to make it that complex since that option only exists to support /mount/ type stuff right now. I did just renamed it to stripPath though, which I think makes a little more sense.

@mrkurt mrkurt merged commit cc2c1d9 into master May 21, 2018
@michaeldwan michaeldwan deleted the fly-proxy branch August 15, 2018 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants