diff --git a/docs/www/docs/cli/swa-deploy.md b/docs/www/docs/cli/swa-deploy.md index 9b694216c..d71ca7b8b 100644 --- a/docs/www/docs/cli/swa-deploy.md +++ b/docs/www/docs/cli/swa-deploy.md @@ -75,7 +75,7 @@ To deploy both the front-end app and an API to Azure Static Web Apps, use the fo 2. Use the flags `--api-language` and `--api-version` to specify the language and the runtime version of the backend api. ```json -swa deploy ./my-dist --api-location ./api --api-language "node" --api-version "16" +swa deploy ./my-dist --api-location ./api --api-language "node" --api-version "22" ``` Alternatively you can [configure](https://docs.microsoft.com/en-us/azure/static-web-apps/configuration#platform) the `apiRuntime` in the `staticwebapp.config.json` file @@ -83,7 +83,7 @@ Alternatively you can [configure](https://docs.microsoft.com/en-us/azure/static- ```json { "platform": { - "apiRuntime": "node:16" + "apiRuntime": "node:22" } } ``` @@ -211,7 +211,7 @@ swa deploy --print-token Provide function language and version ```bash -swa deploy ./my-dist --api-location ./api --api-language "node" --api-version "16" +swa deploy ./my-dist --api-location ./api --api-language "node" --api-version "22" ``` Deploy to a specific environment diff --git a/docs/www/docs/use/4-deploy.md b/docs/www/docs/use/4-deploy.md index e39e9bc57..f7eeffdd0 100644 --- a/docs/www/docs/use/4-deploy.md +++ b/docs/www/docs/use/4-deploy.md @@ -70,7 +70,7 @@ To deploy both the front-end app and an API to Azure Static Web Apps, use the fo ```json { "platform": { - "apiRuntime": "node:16" + "apiRuntime": "node:22" } } ``` diff --git a/e2e/samples/ssr/remix/Dockerfile b/e2e/samples/ssr/remix/Dockerfile index 21529d14e..a7f9406ca 100644 --- a/e2e/samples/ssr/remix/Dockerfile +++ b/e2e/samples/ssr/remix/Dockerfile @@ -1,5 +1,5 @@ # base node image -FROM node:16-bullseye-slim as base +FROM node:22-bullseye-slim as base # set for base and all layer that inherit from it ENV NODE_ENV production diff --git a/src/cli/commands/deploy/register.ts b/src/cli/commands/deploy/register.ts index d7675caea..01efe0a75 100644 --- a/src/cli/commands/deploy/register.ts +++ b/src/cli/commands/deploy/register.ts @@ -20,7 +20,7 @@ export default function registerCommand(program: Command) { .option( "-w, --swa-config-location ", "the directory where the staticwebapp.config.json file is located", - DEFAULT_CONFIG.swaConfigLocation + DEFAULT_CONFIG.swaConfigLocation, ) .option("-d, --deployment-token ", "the secret token used to authenticate with the Static Web Apps") .option("-dr, --dry-run", "simulate a deploy process without actually running it", DEFAULT_CONFIG.dryRun) @@ -53,7 +53,7 @@ Examples: SWA_CLI_DEPLOYMENT_TOKEN=123 swa deploy ./dist/ --api-location ./api/ Provide function language and version - swa deploy ./my-dist --api-location ./api --api-language "node" --api-version "16" + swa deploy ./my-dist --api-location ./api --api-language "node" --api-version "22" Deploy using swa-cli.config.json file swa deploy @@ -64,7 +64,7 @@ Examples: Deploy to a specific environment swa deploy --env production - ` + `, ); addSharedLoginOptionsToCommand(deployCommand); } diff --git a/src/cli/commands/init/init.spec.ts b/src/cli/commands/init/init.spec.ts index f3ee65d85..28b8dbd15 100644 --- a/src/cli/commands/init/init.spec.ts +++ b/src/cli/commands/init/init.spec.ts @@ -126,7 +126,7 @@ describe("swa init", () => { "apiLocation": "src/node-ts", "outputLocation": ".", "apiLanguage": "node", - "apiVersion": "16", + "apiVersion": "22", "apiBuildCommand": "npm run build --if-present" } } @@ -150,7 +150,7 @@ describe("swa init", () => { "apiLocation": "src/node", "outputLocation": "_site", "apiLanguage": "node", - "apiVersion": "16", + "apiVersion": "22", "appBuildCommand": "npm run build", "apiBuildCommand": "npm run build --if-present", "run": "npm run dev",