-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Document Link
What problem are you solving?
Other web frameworks that offer a dev server let programmers configure them as a proxy to allow for certain requests to the dev server to be routed to other resources, for example, requests to /api/user/1234 end up hitting https://my-other-local-service:port/api/user/1234 instead of the development server.
This is convenient because when the app is deployed in production, those /api mappings are normally done with hosting configuration.
This project aims to add that functionality to the Flutter dev server, by incorporating package:shelf_proxy into flutter_tools, and a new configuration file for this proxy feature.
Take a peek at the linked design doc for more background, state of the art, and a proposed solution.