Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 2.86 KB

File metadata and controls

59 lines (41 loc) · 2.86 KB
title Supported languages and runtimes in Azure Static Web Apps
description Supported languages and runtimes in Azure Static Web Apps
services static-web-apps
author cjk7989
ms.service azure-static-web-apps
ms.topic concept-article
ms.date 05/28/2024
ms.author jikunchen

Supported languages and runtimes in Azure Static Web Apps

Azure Static Web Apps features two different places where runtime and language versions are important, on the front end and for the API.

Runtime type Description
Front end The version responsible for running the website's build steps that build the front end application.
API The version and runtime of Azure Functions used in your web application.

Front end

You can specify the version used to build the front end of your static web app. Configuring a non-default version is often only necessary if you need to target older versions.

You can specify the runtime version that builds the front end of your static web app in the package.json file in the engines section of the file.

{
  ...
  "engines": {
   "node": ">=14.0.0"
  }
}

API

The underlying support for APIs in Azure Static Web Apps is provided by Azure Functions. Refer to the Azure Functions supported languages and runtimes for details.

The following versions are supported for managed functions in Static Web Apps. If your application requires a version not listed, consider bringing your own functions to your app.

[!INCLUDE Languages and runtimes]

Re-enabling proxies in v4.x

Azure Functions supports re-enabling proxies in v4.x. To enable proxy support in managed functions for your static web app, set SWA_ENABLE_PROXIES_MANAGED_FUNCTIONS to true in your application settings.

Note

While proxies are supported in v4.x, consider using Azure API Management integration with your managed function apps, so your app isn't reliant on proxies.

Deprecations

Note

Now that Azure Functions v3 is retired, Static Web Apps uses Azure Functions v4 for API runtime support for Python 3.8. Redeploy your app to enable this change. While not recommended, you can revert back to v3 by setting the environment variable USEV3_FOR_PYTHON38 to true.

The following runtimes are deprecated in Azure Static Web Apps. For more information about changing your runtime, see Specify API language runtime version in Azure Static Web Apps and Migrate apps from Azure Functions version 3.x to version 4.x.

  • .NET Core 3.1
  • Node.js 12.x