Skip to content

Commit 828955c

Browse files
authored
Restore re-execution middleware in templates. (#63005)
* Restore re-execution middleware in templates. * Disable the job. * Condition should be a string.
1 parent 9c112f8 commit 828955c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.azure/pipelines/ci-public.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,8 @@ stages:
636636
agentOs: Windows
637637
isAzDOTestingJob: true
638638
timeoutInMinutes: 240
639+
# Temporarily disabled due to https://github.com/dotnet/aspnetcore/issues/63140
640+
condition: 'false'
639641
steps:
640642
- script: git submodule update --init
641643
displayName: Update submodules

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/Program.Main.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public static void Main(string[] args)
107107
#endif
108108
}
109109

110+
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
110111
#if (HasHttpsProfile)
111112
app.UseHttpsRedirection();
112113

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
app.UseHsts();
101101
#endif
102102
}
103-
103+
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
104104
#if (HasHttpsProfile)
105105
app.UseHttpsRedirection();
106106

0 commit comments

Comments
 (0)