Skip to content

Commit

Permalink
Skip index to 404 html copy since index.html no longer exists as requ…
Browse files Browse the repository at this point in the history
…ired by upgrading to .NET 8.
  • Loading branch information
Layoric committed Nov 23, 2023
1 parent 024ac31 commit da1c836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MyApp/MyApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<WriteLinesToFile File="$(ClientDir)/appsettings.Production.json" Lines="$([System.IO.File]::ReadAllText($(ClientDir)/appsettings.Production.json).Replace('{DEPLOY_API}',$(DEPLOY_API)))" Overwrite="true" Encoding="UTF-8" />

<!-- 404.html SPA fallback (supported by GitHub Pages, Cloudflare & Netlify CDNs) -->
<Copy SourceFiles="$(WwwRoot)/index.html" DestinationFiles="$(WwwRoot)/404.html" />
<!-- <Copy SourceFiles="$(WwwRoot)/index.html" DestinationFiles="$(WwwRoot)/404.html" />-->

<!-- define /api proxy routes (supported by Cloudflare or Netlify CDNs) -->
<WriteLinesToFile File="$(WwwRoot)/_redirects" Lines="$([System.IO.File]::ReadAllText($(WwwRoot)/_redirects).Replace('{DEPLOY_API}',$(DEPLOY_API)))" Overwrite="true" Encoding="UTF-8" />
Expand Down

0 comments on commit da1c836

Please sign in to comment.