You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/static-web-apps/build-configuration.md
+35-1Lines changed: 35 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ The following table lists the available configuration settings.
24
24
|`app_build_command`| For Node.js applications, you can define a custom command to build the static content application.<br><br>For example, to configure a production build for an Angular application create an npm script named `build-prod` to run `ng build --prod` and enter `npm run build-prod` as the custom command. If left blank, the workflow tries to run the `npm run build` or `npm run build:azure` commands. | No |
25
25
|`api_build_command`| For Node.js applications, you can define a custom command to build the Azure Functions API application. | No |
26
26
|`skip_app_build`| Set the value to `true` to skip building the front-end app. | No |
27
+
|`skip_api_build`| Set the value to `true` to skip building the API functions. | No |
27
28
|`cwd`<br />(Azure Pipelines only) | Absolute path to the working folder. Defaults to `$(System.DefaultWorkingDirectory)`. | No |
28
29
|`build_timeout_in_minutes`| Set this value to customize the build timeout. Defaults to `15`. | No |
29
30
@@ -217,9 +218,42 @@ inputs:
217
218
```
218
219
219
220
---
221
+
## Skip building the API
220
222
223
+
If you want to skip building the API, you can bypass the automatic build and deploy the API built in a previous step.
221
224
> [!NOTE]
222
-
> You can only skip the build for the front-end app. The API is always built if it exists.
225
+
> Currently the `skip_api_build` is only supported in GitHub Actions and not Azure Pipelines.
226
+
227
+
Steps to skip building the API:
228
+
229
+
- In the *staticwebapp.config.json* file, set `apiRuntime` to the correct language and version. Refer to [Configure Azure Static Web Apps](configuration.md#selecting-the-api-language-runtime-version) for the list of supported languages and versions.
0 commit comments