File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Server Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 7474var app = builder . Build ( ) ;
7575
7676// Configure the HTTP request pipeline.
77- #if ( IndividualLocalAuth )
7877if ( app . Environment . IsDevelopment ( ) )
7978{
79+ #if ( IndividualLocalAuth )
8080 app . UseMigrationsEndPoint ( ) ;
81+ #endif
8182 app . UseWebAssemblyDebugging ( ) ;
8283}
8384else
84- #else
85- if ( ! app . Environment . IsDevelopment ( ) )
86- #endif
8785{
8886 app . UseExceptionHandler ( "/Error" ) ;
8987#if ( RequiresHttps )
9088 // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
9189 app . UseHsts ( ) ;
90+ #endif
9291}
9392
93+ #if ( RequiresHttps )
9494app . UseHttpsRedirection ( ) ;
95- #else
96- }
9795
9896#endif
9997
You can’t perform that action at this time.
0 commit comments