Azure / Azure/static-web-apps

SWA and APIM on local env

Open
#1,270 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Hi together,

I've set up an SWA and transitioned the functions connection from a standalone function to API Management. This configuration works seamlessly on Azure. However, I'm facing challenges replicating this setup for my local development environment.

I have two Azure functions:

- Function A: When started locally, it's accessed at localhost:7071/api/endpoints
- Function B: Similarly, it runs on localhost:7071/api/endpoints

For API Management (APIM), I've routed these functions as:

- Function A: Locally available at localhost:7071/api/**A**/endpoints
- Function B: Accessible at localhost:7071/api/**B**/endpoints

My question is: How can I run both functions locally, retaining the same endpoint structure as in APIM? Alternatively, is there a possibility that my method of connecting the function to APIM was not set up correctly?

I appreciate your assistance.

Thank you

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.