diff --git a/src/Ombi/Properties/launchSettings.json b/src/Ombi/Properties/launchSettings.json index ef67aa820..6ceec857f 100644 --- a/src/Ombi/Properties/launchSettings.json +++ b/src/Ombi/Properties/launchSettings.json @@ -23,6 +23,9 @@ "Ombi": { "commandName": "Project", "commandLineArgs": "--host http://*:3577", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, "applicationUrl": "http://localhost:3577/" } } diff --git a/src/Ombi/Startup.cs b/src/Ombi/Startup.cs index 9bb5ef629..9a5667316 100644 --- a/src/Ombi/Startup.cs +++ b/src/Ombi/Startup.cs @@ -212,11 +212,13 @@ namespace Ombi app.UseSpa(spa => { - if (env.IsDevelopment()) - { - spa.Options.SourcePath = "ClientApp"; - spa.UseProxyToSpaDevelopmentServer("http://localhost:3578"); - } +#if DEBUG + //if (env.IsDevelopment()) + //{ + spa.Options.SourcePath = "ClientApp"; + spa.UseProxyToSpaDevelopmentServer("http://localhost:3578"); + //} +#endif }); }