diff --git a/Kyoo.Authentication/Kyoo.Authentication.csproj b/Kyoo.Authentication/Kyoo.Authentication.csproj
index 47113130..3be97dff 100644
--- a/Kyoo.Authentication/Kyoo.Authentication.csproj
+++ b/Kyoo.Authentication/Kyoo.Authentication.csproj
@@ -21,20 +21,10 @@
-
+
+
+ login/%(RecursiveDir)%(Filename)%(Extension)
+ Always
+
-
-
-
-
- login/%(LoginFiles.RecursiveDir)%(LoginFiles.Filename)%(LoginFiles.Extension)
- PreserveNewest
- true
-
-
-
-
-
-
-
diff --git a/Kyoo.WebApp b/Kyoo.WebApp
index dc37ce39..49cf0c3d 160000
--- a/Kyoo.WebApp
+++ b/Kyoo.WebApp
@@ -1 +1 @@
-Subproject commit dc37ce398d6c9cacc7703e21552a116c42b548ed
+Subproject commit 49cf0c3d17f889f40fa9adbb383edfc0d2c99779
diff --git a/Kyoo/Kyoo.csproj b/Kyoo/Kyoo.csproj
index 37200c34..425968d3 100644
--- a/Kyoo/Kyoo.csproj
+++ b/Kyoo/Kyoo.csproj
@@ -49,6 +49,7 @@
Command="mkdir -p build %26%26 cd build %26%26 cmake .. %26%26 make -j" />
+
diff --git a/Kyoo/PluginsStartup.cs b/Kyoo/PluginsStartup.cs
index 22ba3e18..c13c9364 100644
--- a/Kyoo/PluginsStartup.cs
+++ b/Kyoo/PluginsStartup.cs
@@ -10,6 +10,7 @@ using Kyoo.SqLite;
using Kyoo.Tasks;
using Kyoo.TheMovieDb;
using Kyoo.TheTvdb;
+using Kyoo.WebApp;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
@@ -46,8 +47,10 @@ namespace Kyoo
{
_plugins = plugins;
_configuration = configuration;
+ // TODO enable the web app only if it was build with it.
_plugins.LoadPlugins(
typeof(CoreModule),
+ typeof(WebAppModule),
typeof(AuthenticationModule),
typeof(PostgresModule),
typeof(SqLiteModule),
diff --git a/Kyoo/Program.cs b/Kyoo/Program.cs
index cd16ca95..4eaa4eeb 100644
--- a/Kyoo/Program.cs
+++ b/Kyoo/Program.cs
@@ -33,6 +33,8 @@ namespace Kyoo
IHostBuilder builder = CreateWebHostBuilder(args);
+ // TODO remove ENVIRONEMENT handling and force it to the build env
+
bool? debug = Environment.GetEnvironmentVariable("ENVIRONMENT")?.ToLowerInvariant() switch
{
"d" => true,