static-web-apps-cli icon indicating copy to clipboard operation
static-web-apps-cli copied to clipboard

Proxy in client package.json used by default or actively ignored

Open diberry opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

When running React with Azure functions (in an /api folder) as a single application, locally, without SWA CLI, I need a proxy in the package.json. Since the CLI is a bit new and not totally hardened, can the CLI either use the proxy if found (as the default) or ignore the proxy with a CLI switch?

diberry avatar Jun 18 '21 18:06 diberry

Can you explain how this would be better? If you use the CLI, the CLI is the proxy. Anything to /api is proxied to the function app.

anthonychu avatar Jun 19 '21 23:06 anthonychu