DotNet Mirror
  DNM facebook   DNM Google+   DNM Twitter   

API language runtime version in Azure Static Web Apps

By Ashok Nalam on 07 Mar 2022 | Category: Microsoft Azure | Tagged: azure static web apps azure 
This snippet shows how to configure the API language runtime version in Azure Static Web Apps using staticwebapp.config.json file.
  Discuss Add Comment   |  
Add rating Rate this resource   

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 

  Discuss Add Comment    
Add rating Rate this resource   
About the Contributor
Member Since : 10 Dec 2012
Member Points (Level) : 9526  (Professional)
Location : INDIA
Home Page : http://dotnetmirror.com
About : I am admin of this site.
Rate this resource
 
Add your Comment
Name Email WebSite
Captcha Refresh


Comments (3)
 
1. By iz147i on 08 Jul 2023

hhbg3h

 
2. By 0rrkni on 23 Jul 2023

koek9x

 
3. By 709cue on 06 Mar 2024

numfkv

 
cheap jordans|wholesale air max|wholesale jordans|wholesale jewelry|wholesale jerseys