diff options
Diffstat (limited to 'Timeline/Startup.cs')
-rw-r--r-- | Timeline/Startup.cs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Timeline/Startup.cs b/Timeline/Startup.cs index 2eb08f96..11b6fa9e 100644 --- a/Timeline/Startup.cs +++ b/Timeline/Startup.cs @@ -143,16 +143,9 @@ namespace Timeline {
spa.Options.SourcePath = useMockFrontEnd ? "MockClientApp" : "ClientApp";
- if (!useMockFrontEnd && Environment.IsDevelopment())
+ if (!useMockFrontEnd && (Configuration.GetValue<bool?>(ApplicationConfiguration.UseProxyFrontEndKey) ?? false))
{
- if (Configuration.GetValue<bool?>(ApplicationConfiguration.FrontEndProxyOnlyKey) ?? false)
- {
- spa.UseProxyToSpaDevelopmentServer(new UriBuilder("http", "localhost", 3000).Uri);
- }
- else
- {
- SpaServices.SpaDevelopmentServerMiddlewareExtensions.UseSpaDevelopmentServer(spa, packageManager: "yarn", npmScript: "install-and-start", port: 3000);
- }
+ spa.UseProxyToSpaDevelopmentServer(new UriBuilder("http", "localhost", 3000).Uri);
}
});
}
|