Skip to content

Commit fd0718d

Browse files
committed
Updates
1 parent 7f74f60 commit fd0718d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

aspnetcore/blazor/fundamentals/environments.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ There are several approaches for setting the environment in a standalone Blazor
6666
</PropertyGroup>
6767
```
6868

69-
* 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):
69+
* The environment can be set based on the use of a publish profile. The first condition in the following example sets the environment to `Development` when no publish profile is used (applies to both build and publish operations without a profile), while the second condition covers setting the environment to `Production` when any publish profile is used:
7070

7171
```xml
72-
<PropertyGroup Condition="'$(PublishProfile)' != ''">
73-
<WasmApplicationEnvironmentName>Production</WasmApplicationEnvironmentName>
74-
</PropertyGroup>
75-
7672
<PropertyGroup Condition="'$(PublishProfile)' == ''">
7773
<WasmApplicationEnvironmentName>Development</WasmApplicationEnvironmentName>
7874
</PropertyGroup>
75+
76+
<PropertyGroup Condition="'$(PublishProfile)' != ''">
77+
<WasmApplicationEnvironmentName>Production</WasmApplicationEnvironmentName>
78+
</PropertyGroup>
7979
```
8080

8181
* 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).

0 commit comments

Comments
 (0)