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

Adds support for urlPrefix to allow requests to external resources; fixes #228 #236

Closed
wants to merge 6 commits into from

Conversation

jamesdixon
Copy link
Contributor

With Pretender v0.9.0 now supporting external resources, this update adds a new urlPrefix parameter that allows you to configure Mirage accordingly. For example, if your API lives at http://localhost:8080, you can set urlPrefix to that url and it will be prepended to any routes configured in mirage/config.js.

@jamesdixon
Copy link
Contributor Author

@samselikoff can you try re-running the build? The failure is on a specific scenario and seems unrelated to the PR. I ran everything locally and all was good. Thanks!

@jamesdixon
Copy link
Contributor Author

Local test run:

image

@blimmer blimmer mentioned this pull request Aug 16, 2015
@jamesdixon jamesdixon closed this Aug 17, 2015
@jamesdixon jamesdixon deleted the master branch August 17, 2015 03:36
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.

1 participant