You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer of both a UI and API, it'd be nice if preact-cli allowed certain API calls to be handled by a disparate API (running on a potentially different host/port). There's documentation online with create-react-app about specifying a proxy in package.json (see here).
I'm not sure if this is something that you have to "bake" into the CLI, but it doesn't appear to work out of the box when I've tested it.
Hi, this is a great idea! It's certainly doable once #56 is in, and also falls in line with #70. These are making it in shortly -- the next release, I believe.
Unless you feel that this is substantially different, I'm going to close this as a duplicate.
As a developer of both a UI and API, it'd be nice if preact-cli allowed certain API calls to be handled by a disparate API (running on a potentially different host/port). There's documentation online with
create-react-app
about specifying aproxy
in package.json (see here).I'm not sure if this is something that you have to "bake" into the CLI, but it doesn't appear to work out of the box when I've tested it.
Webpack Proxy
The text was updated successfully, but these errors were encountered: