In production environment and for optimal runtime performance, you should publish Web APIs to the dedicated server, such as Kestrel (with or without a reverse proxy).
The following section provides detailed instructions on how to run Web APIs with Kestrel in the production environment.
For instructions on running Web APIs in other production environments, refer to Hosting Web APIs in Docker Containers, Hosting Web APIs in IIS, Deploying installable cloud apps to Kubernetes, Publishing PowerServer Projects to Azure App Service, and Publishing PowerServer Projects to Azure Container Instances.