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
|[Integrated security](user-information.md) with direct access to user authentication and role-based authorization data | ✔ | ✔ |
34
34
|[Routing integration](./configuration.md?#routes) that makes the _api_ route available to the web app securely without requiring custom CORS rules. | ✔ | ✔ |
@@ -38,6 +38,8 @@ The following table contrasts the differences between using managed and existing
38
38
| API functions available outside Azure Static Web Apps | ✕ | ✔ |
<sup>1</sup> To specify the runtime version in managed functions, add a configuration file to your frontend app and set the [`apiRuntime` property](configuration.md).
42
+
41
43
## Configuration
42
44
43
45
API endpoints are available to the web app through the _api_ route.
@@ -61,7 +63,7 @@ Logs are only available if you add [Application Insights](monitor.md).
61
63
62
64
| Managed functions | Bring your own functions |
63
65
| --- | --- |
64
-
| <ul><li>Triggers are limited to [HTTP](../azure-functions/functions-bindings-http-webhook.md).</li><li>The Azure Functions app must either be in Node.js 12, .NET Core 3.1, .NET 6.0, or Python 3.8.</li><li>Some application settings are managed by the service, therefore the following prefixes are reserved by the runtime:<ul><li>*APPSETTING\_, AZUREBLOBSTORAGE\_, AZUREFILESSTORAGE\_, AZURE_FUNCTION\_, CONTAINER\_, DIAGNOSTICS\_, DOCKER\_, FUNCTIONS\_, IDENTITY\_, MACHINEKEY\_, MAINSITE\_, MSDEPLOY\_, SCMSITE\_, SCM\_, WEBSITES\_, WEBSITE\_, WEBSOCKET\_, AzureWeb*</li></ul></li></ul> | <ul><li>You are responsible to manage the Functions app deployment.</li></ul> |
66
+
| <ul><li>Triggers are limited to [HTTP](../azure-functions/functions-bindings-http-webhook.md).</li><li>The Azure Functions app must either be in Node.js 12, Node.js 14, Node.js 16 (preview), .NET Core 3.1, .NET 6.0, Python 3.8, or Python 3.9.</li><li>Some application settings are managed by the service, therefore the following prefixes are reserved by the runtime:<ul><li>*APPSETTING\_, AZUREBLOBSTORAGE\_, AZUREFILESSTORAGE\_, AZURE_FUNCTION\_, CONTAINER\_, DIAGNOSTICS\_, DOCKER\_, FUNCTIONS\_, IDENTITY\_, MACHINEKEY\_, MAINSITE\_, MSDEPLOY\_, SCMSITE\_, SCM\_, WEBSITES\_, WEBSITE\_, WEBSOCKET\_, AzureWeb*</li></ul></li></ul> | <ul><li>You are responsible to manage the Functions app deployment.</li></ul> |
Copy file name to clipboardExpand all lines: articles/static-web-apps/configuration.md
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -310,6 +310,35 @@ The following example configuration demonstrates how to override an error code.
310
310
}
311
311
```
312
312
313
+
## Platform
314
+
315
+
The `platform` section controls platform specific settings, such as the API language runtime version.
316
+
317
+
### Selecting the API language runtime version
318
+
319
+
To configure the API language runtime version, set the `apiRuntime` property in the `platform` section to the desired version from the following values.
320
+
321
+
| Language runtime version | Operating system | Azure Functions version |`apiRuntime` value |
322
+
|--|--|--|--|
323
+
| .NET Core 3.1 | Windows | 3.x |`dotnet:3.1`|
324
+
| .NET 6.0 in-process | Windows | 4.x |`dotnet:6.0`|
325
+
| .NET 6.0 isolated | Windows | 4.x |`dotnet-isolated:6.0`|
326
+
| Node.js 12.x | Linux | 3.x |`node:12`|
327
+
| Node.js 14.x | Linux | 4.x |`node:14`|
328
+
| Node.js 16.x (preview) | Linux | 4.x |`node:16`|
329
+
| Python 3.8 | Linux | 3.x |`python:3.8`|
330
+
| Python 3.9 | Linux | 4.x |`python:3.9`|
331
+
332
+
The following example configuration demonstrates how to use the `apiRuntime` property to select Node.js 16 as the API language runtime version.
333
+
334
+
```json
335
+
{
336
+
"platform": {
337
+
"apiRuntime": "node:16"
338
+
}
339
+
}
340
+
```
341
+
313
342
## Networking
314
343
315
344
The `networking` section controls the network configuration of your static web app. To restrict access to your app, specify a list of allowed IP address blocks in `allowedIpRanges`.
@@ -348,7 +377,7 @@ In addition to IP address blocks, you can also specify [service tags](../virtual
348
377
349
378
For details on how to restrict routes to authenticated users, see [Securing routes with roles](#securing-routes-with-roles).
350
379
351
-
### Disable cache for authenticated paths
380
+
### Disabling cache for authenticated paths
352
381
353
382
If you set up [manual integration with Azure Front Door](front-door-manual.md), you may want to disable caching for your secured routes. If you have enabled [enterprise-grade edge](enterprise-edge.md) this is already configured for you.
0 commit comments