static-web-apps-cli
static-web-apps-cli copied to clipboard
Proxy in client package.json used by default or actively ignored
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?
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.