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#platform). Support is subject to the [Azure Functions language runtime support policy](../azure-functions/language-support-policy.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
@@ -312,6 +312,35 @@ The following example configuration demonstrates how to override an error code.
312
312
}
313
313
```
314
314
315
+
## Platform
316
+
317
+
The `platform` section controls platform specific settings, such as the API language runtime version.
318
+
319
+
### Selecting the API language runtime version
320
+
321
+
To configure the API language runtime version, set the `apiRuntime` property in the `platform` section to one of the following supported values.
322
+
323
+
| Language runtime version | Operating system | Azure Functions version |`apiRuntime` value |
324
+
|--|--|--|--|
325
+
| .NET Core 3.1 | Windows | 3.x |`dotnet:3.1`|
326
+
| .NET 6.0 in-process | Windows | 4.x |`dotnet:6.0`|
327
+
| .NET 6.0 isolated | Windows | 4.x |`dotnet-isolated:6.0`|
328
+
| Node.js 12.x | Linux | 3.x |`node:12`|
329
+
| Node.js 14.x | Linux | 4.x |`node:14`|
330
+
| Node.js 16.x (preview) | Linux | 4.x |`node:16`|
331
+
| Python 3.8 | Linux | 3.x |`python:3.8`|
332
+
| Python 3.9 | Linux | 4.x |`python:3.9`|
333
+
334
+
The following example configuration demonstrates how to use the `apiRuntime` property to select Node.js 16 as the API language runtime version.
335
+
336
+
```json
337
+
{
338
+
"platform": {
339
+
"apiRuntime": "node:16"
340
+
}
341
+
}
342
+
```
343
+
315
344
## Networking
316
345
317
346
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`.
@@ -350,7 +379,7 @@ In addition to IP address blocks, you can also specify [service tags](../virtual
350
379
351
380
For details on how to restrict routes to authenticated users, see [Securing routes with roles](#securing-routes-with-roles).
352
381
353
-
### Disable cache for authenticated paths
382
+
### Disabling cache for authenticated paths
354
383
355
384
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