Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/www/docs/cli/swa-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ 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

```json
{
"platform": {
"apiRuntime": "node:16"
"apiRuntime": "node:22"
}
}
```
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/www/docs/use/4-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion e2e/samples/ssr/remix/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/cli/commands/deploy/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function registerCommand(program: Command) {
.option(
"-w, --swa-config-location <swaConfigLocation>",
"the directory where the staticwebapp.config.json file is located",
DEFAULT_CONFIG.swaConfigLocation
DEFAULT_CONFIG.swaConfigLocation,
)
.option("-d, --deployment-token <secret>", "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)
Expand Down Expand Up @@ -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
Expand All @@ -64,7 +64,7 @@ Examples:

Deploy to a specific environment
swa deploy --env production
`
`,
);
addSharedLoginOptionsToCommand(deployCommand);
}
4 changes: 2 additions & 2 deletions src/cli/commands/init/init.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ describe("swa init", () => {
"apiLocation": "src/node-ts",
"outputLocation": ".",
"apiLanguage": "node",
"apiVersion": "16",
"apiVersion": "22",
"apiBuildCommand": "npm run build --if-present"
}
}
Expand All @@ -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",
Expand Down
Loading