Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Jan 8, 2025
1 parent deb8d8a commit 42c641b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion src/CleanAspire.ClientApp/CleanAspire.ClientApp.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<DefineConstants>STANDALONE</DefineConstants>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
2 changes: 1 addition & 1 deletion src/CleanAspire.ClientApp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN dotnet workload update

# Copy the entire source code and build the application in Release mode
COPY . .
RUN dotnet publish -c Release -o /app/publish
RUN dotnet publish -c Release -o /app/publish -p:DefineConstants=STANDALONE

# Stage 2: Serve the Blazor Client Application using Nginx
FROM nginx:alpine AS final
Expand Down
11 changes: 0 additions & 11 deletions src/CleanAspire.ClientApp/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,6 @@
<span class="dismiss">🗙</span>
</div>
<script src="_framework/blazor.webassembly.js"></script>
<script>
if (window.location.hostname.includes("standalone.blazorserver.com")) {
Blazor.start({
environment: "Standalone"
});
} else {
Blazor.start({
environment: "Production"
});
}
</script>
<script>navigator.serviceWorker.register('service-worker.js');</script>
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
<script src="js/onlinestatus.js"></script>
Expand Down

0 comments on commit 42c641b

Please sign in to comment.