fix: middleware regressions (#3106)
Fixes some regressions found after merging https://github.com/denoland/fresh/pull/3086 - Missing 404 middlewares when mounting sub-apps - revert more staticFiles logic to always require the middleware like before
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { App } from "fresh";
|
||||
import { App, staticFiles } from "fresh";
|
||||
import {
|
||||
allIslandApp,
|
||||
assertNotSelector,
|
||||
@@ -27,7 +27,8 @@ function testApp<T>(): App<T> {
|
||||
const app = new App<T>()
|
||||
.island(selfCounter, "SelfCounter", SelfCounter)
|
||||
.island(partialInIsland, "PartialInIsland", PartialInIsland)
|
||||
.island(jsonIsland, "JsonIsland", JsonIsland);
|
||||
.island(jsonIsland, "JsonIsland", JsonIsland)
|
||||
.use(staticFiles());
|
||||
setBuildCache(app, getBuildCache(allIslandApp));
|
||||
return app;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user