-
Notifications
You must be signed in to change notification settings - Fork 858
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
Proxy target supports local file path #63
Comments
imho, this would create unnecessary bloat in the proxy middleware for a specific use-case. Think it is better to start a separate server to serve your static This way you can customise your setup to your needs. |
Actually, I would also like this feature for my own project. Being able to serve local files for certain routes in a development environment is important for most Javascript projects. |
This issue's been closed for a while, but I was in need of a similar requirement in a create-react-app (proxy docs). Hope this helps someone. To workaround, it was a case of storing mock JSON files in the site's public root directory (e.g. Then we configure rewrite on paths with a bogus
With this setup, we should be able to access the mock data at both the original URL via filename ( Related: #333 |
I write some local mockup files to debug APIs when server-side is not ready.
It will be nice to write file path in target to proxy local file.
The text was updated successfully, but these errors were encountered: