diff --git a/.run/Lighthouse Website.run.xml b/.run/Lighthouse Website.run.xml
index 045ee0d6..b428e79c 100644
--- a/.run/Lighthouse Website.run.xml
+++ b/.run/Lighthouse Website.run.xml
@@ -6,6 +6,7 @@
+
diff --git a/ProjectLighthouse.Servers.Website/ProjectLighthouse.Servers.Website.csproj b/ProjectLighthouse.Servers.Website/ProjectLighthouse.Servers.Website.csproj
index cf72bd1f..caa3b2f4 100644
--- a/ProjectLighthouse.Servers.Website/ProjectLighthouse.Servers.Website.csproj
+++ b/ProjectLighthouse.Servers.Website/ProjectLighthouse.Servers.Website.csproj
@@ -7,6 +7,11 @@
LBPUnion.ProjectLighthouse.Servers.Website
false
+
+
+ false
+ false
+
diff --git a/ProjectLighthouse.Servers.Website/Startup/WebsiteStartup.cs b/ProjectLighthouse.Servers.Website/Startup/WebsiteStartup.cs
index 14e48f97..a4f4ffce 100644
--- a/ProjectLighthouse.Servers.Website/Startup/WebsiteStartup.cs
+++ b/ProjectLighthouse.Servers.Website/Startup/WebsiteStartup.cs
@@ -1,8 +1,11 @@
using System.Globalization;
+using System.Reflection;
using LBPUnion.ProjectLighthouse.Localization;
using LBPUnion.ProjectLighthouse.Middlewares;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.AspNetCore.Localization;
+using Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation;
+using Microsoft.Extensions.FileProviders;
#if !DEBUG
using Microsoft.Extensions.Hosting.Internal;
@@ -26,7 +29,14 @@ public class WebsiteStartup
{
services.AddControllers();
#if DEBUG
- services.AddRazorPages().WithRazorPagesAtContentRoot().AddRazorRuntimeCompilation();
+ services.AddRazorPages().WithRazorPagesAtContentRoot().AddRazorRuntimeCompilation((options) =>
+ {
+ // jank but works
+ string projectDir = Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..", "..", ".."));
+
+ options.FileProviders.Clear();
+ options.FileProviders.Add(new PhysicalFileProvider(projectDir));
+ });
#else
services.AddRazorPages().WithRazorPagesAtContentRoot();
#endif