Introduction
In Azure static web apps, we use the staticwebapp.config.json configuration file to configure Authentication, Authorization, Routing, Networking for the App, and to build the static web app, you could use .NET, Python, or Node of your language choice.
To bind the static web app with the programing language, we have to set the API language runtime under the Platform section in the configuration file. The below code shows, setting API runtime in the configuration file.
{
“Platform” : {
“apiRuntime” : “python: 3.8” }
}
and below are a few other supported values.
Language Runtime | apiRuntime value |
.NET Core 3.1 | Dotnet: 3.1 |
Node 14.x | node:14 |
Python 3.9 | Python: 3.9 |
References
https://docs.microsoft.com/en-us/azure/static-web-apps/configuration#platform