gpt4 book ai didi

angular - Azure 静态 Web 应用程序可以将 Azure 应用服务作为后端吗?

转载 作者:行者123 更新时间:2023-12-03 05:11:24 26 4
gpt4 key购买 nike

我需要创建一个 Azure 静态 Web 应用程序,并让用户下载由现有 Azure 应用程序服务生成的文件。静态 Web 应用程序可以与作为后端的 Azure 应用程序服务进行通信吗?

最佳答案

简短的回答:是的。

稍微长一点的答案:

API options

The following Azure services can be integrated with Azure Static Web Apps:

Service Managed Bring your own
Azure Functions
Azure API Management
Azure App Service
Azure Container Apps

Note

Bring your own APIs is only available in the Azure Static Web Apps Standard plan. Built-in, managed Azure Functions APIs are available in all Azure Static Web Apps plans.

来源:Overview of API support in Azure Static Web Apps - API options

When you link your Azure App Service web app to your static web app, any requests to your static web app with a route that starts with /api are proxied to the same route on the Azure App Service app.

By default, when an App Service app is linked to a static web app, the App Service app only accepts requests that are proxied through the linked static web app. An Azure App Service app can only be linked to a single static web app at a time.

摘自解释如何执行此操作的文章:API support in Azure Static Web Apps with Azure App Service

关于angular - Azure 静态 Web 应用程序可以将 Azure 应用服务作为后端吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76609697/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com