From 0cfa0a55afef328ba96461cff07648c17300ca7f Mon Sep 17 00:00:00 2001 From: Jikun Date: Thu, 31 Jul 2025 16:29:46 +0800 Subject: [PATCH 1/3] feat: upgrade swa runtime version --- schema/staticwebapp.config.json | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/schema/staticwebapp.config.json b/schema/staticwebapp.config.json index 0dd242695..ca818dcd9 100644 --- a/schema/staticwebapp.config.json +++ b/schema/staticwebapp.config.json @@ -585,20 +585,14 @@ "apiRuntime": { "type": "string", "enum": [ - "dotnet:3.1", - "dotnet:6.0", - "dotnet-isolated:6.0", - "dotnet-isolated:7.0", + "dotnet:8.0", "dotnet-isolated:8.0", "dotnet-isolated:9.0", - "node:12", - "node:14", - "node:16", "node:18", "node:20", - "python:3.8", "python:3.9", - "python:3.10" + "python:3.10", + "python:3.11" ], "description": "Language runtime for the managed functions API" } From 0dd32b7baa28f4c9a1d5dae50aeb74f51cbf8be9 Mon Sep 17 00:00:00 2001 From: Jikun Date: Thu, 14 Aug 2025 16:24:37 +0800 Subject: [PATCH 2/3] update constants for swa init --- src/core/constants.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/constants.ts b/src/core/constants.ts index e0f8ddcd7..878e52bf5 100644 --- a/src/core/constants.ts +++ b/src/core/constants.ts @@ -305,10 +305,10 @@ export const DEFAULT_VERSION = { }; export const SUPPORTED_VERSIONS = { - Node: ["12", "14", "16", "18"], - Dotnet: ["3.1", "6.0"], - DotnetIsolated: ["6.0", "7.0", "8.0"], - Python: ["3.8", "3.9", "3.10"], + Node: ["18", "20"], + Dotnet: ["8.0"], + DotnetIsolated: ["8.0", "9.0"], + Python: ["3.9", "3.10", "3.11"], }; export const DEFAULT_RUNTIME_LANGUAGE = "node"; From 28f0d33ff97648964241abab340022d20b801e23 Mon Sep 17 00:00:00 2001 From: Jikun Date: Fri, 5 Sep 2025 11:07:04 +0800 Subject: [PATCH 3/3] recover old runtime --- schema/staticwebapp.config.json | 8 ++++++++ src/core/constants.ts | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/schema/staticwebapp.config.json b/schema/staticwebapp.config.json index ca818dcd9..819195272 100644 --- a/schema/staticwebapp.config.json +++ b/schema/staticwebapp.config.json @@ -585,11 +585,19 @@ "apiRuntime": { "type": "string", "enum": [ + "dotnet:3.1", + "dotnet:6.0", "dotnet:8.0", + "dotnet-isolated:6.0", + "dotnet-isolated:7.0", "dotnet-isolated:8.0", "dotnet-isolated:9.0", + "node:12", + "node:14", + "node:16", "node:18", "node:20", + "python:3.8", "python:3.9", "python:3.10", "python:3.11" diff --git a/src/core/constants.ts b/src/core/constants.ts index 878e52bf5..08cb34541 100644 --- a/src/core/constants.ts +++ b/src/core/constants.ts @@ -305,10 +305,10 @@ export const DEFAULT_VERSION = { }; export const SUPPORTED_VERSIONS = { - Node: ["18", "20"], - Dotnet: ["8.0"], - DotnetIsolated: ["8.0", "9.0"], - Python: ["3.9", "3.10", "3.11"], + Node: ["12", "14", "16", "18", "20"], + Dotnet: ["3.1", "6.0", "8.0"], + DotnetIsolated: ["6.0", "7.0", "8.0", "9.0"], + Python: ["3.8", "3.9", "3.10", "3.11"], }; export const DEFAULT_RUNTIME_LANGUAGE = "node";