Skip to content

Commit bdfeb73

Browse files
Updated project to include a 404.html page for deep linking.
1 parent b381a87 commit bdfeb73

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

OnixLabs.Web/OnixLabs.Web.csproj

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,8 @@
1717
<PackageReference Include="OnixLabs.Security.Cryptography" Version="12.1.1" />
1818
</ItemGroup>
1919

20-
<ItemGroup>
21-
<Folder Include="Areas\Consulting\Components\" />
22-
<Folder Include="Areas\Contact\Components\" />
23-
</ItemGroup>
24-
25-
<ItemGroup>
26-
<_ContentIncludedByDefault Remove="Pages\Counter.razor" />
27-
<_ContentIncludedByDefault Remove="Pages\Home.razor" />
28-
<_ContentIncludedByDefault Remove="Pages\Weather.razor" />
29-
<_ContentIncludedByDefault Remove="Areas\Contributors\Components\Biography.razor" />
30-
<_ContentIncludedByDefault Remove="Areas\Contributors\Pages\Adam.razor" />
31-
<_ContentIncludedByDefault Remove="Areas\Contributors\Pages\Laura.razor" />
32-
<_ContentIncludedByDefault Remove="Areas\Contributors\Pages\Matt.razor" />
33-
<_ContentIncludedByDefault Remove="Areas\Contributors\Pages\Ryan.razor" />
34-
<_ContentIncludedByDefault Remove="Areas\Tools\Components\HashAlgorithms\Md5HashAlgorithm.razor" />
35-
</ItemGroup>
36-
20+
<Target Name="CopyIndexTo404" AfterTargets="Publish">
21+
<Copy SourceFiles="$(PublishDir)index.html" DestinationFiles="$(PublishDir)404.html" />
22+
</Target>
23+
3724
</Project>

0 commit comments

Comments
 (0)