Skip to content

Commit 7f74f60

Browse files
committed
Updates
1 parent 147e4b4 commit 7f74f60

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

aspnetcore/blazor/fundamentals/environments.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ There are several approaches for setting the environment in a standalone Blazor
6969
* The environment can be set based on the use of a publish profile. The first condition in the following example covers setting the environment when any publish profile is used, while the second condition sets the environment to `Development` when no publish profile is used (applies to both build and publish operations without a profile):
7070

7171
```xml
72-
<PropertyGroup>
73-
<WasmApplicationEnvironmentName Condition="'$(PublishProfile)' != ''">
74-
Production
75-
</WasmApplicationEnvironmentName>
76-
77-
<WasmApplicationEnvironmentName Condition="'$(PublishProfile)' == ''">
78-
Development
79-
</WasmApplicationEnvironmentName>
72+
<PropertyGroup Condition="'$(PublishProfile)' != ''">
73+
<WasmApplicationEnvironmentName>Production</WasmApplicationEnvironmentName>
74+
</PropertyGroup>
75+
76+
<PropertyGroup Condition="'$(PublishProfile)' == ''">
77+
<WasmApplicationEnvironmentName>Development</WasmApplicationEnvironmentName>
8078
</PropertyGroup>
8179
```
8280

83-
* Create a custom server-side web API endpoint. The standalone Blazor WebAssembly app requests its environment from the web API either at app startup or on-demand while it's running. For general information on calling a web API from a Blazor app, see <xref:blazor/call-web-api>.
81+
* Create a custom server-side web API endpoint. The standalone Blazor WebAssembly app requests its environment from the web API either at app startup or on-demand while it's running. The value should be passed to [`WebAssemblyStartOptions`](https://github.com/dotnet/aspnetcore/blob/main/src/Components/Web.JS/src/Platform/WebAssemblyStartOptions.ts#L7) or with [`withApplicationEnvironment`](https://github.com/dotnet/aspnetcore/blob/main/src/Components/dotnet-runtime-js/dotnet.d.ts#L110).
82+
83+
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
8484

8585
:::moniker-end
8686

0 commit comments

Comments
 (0)