We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f0612 commit b26497fCopy full SHA for b26497f
src/lib/IgnoreAssetsIntegration.ts
@@ -1,9 +1,4 @@
1
-import type {
2
- AstroConfig,
3
- AstroIntegration,
4
- IntegrationResolvedRoute,
5
- RedirectConfig,
6
-} from "astro";
+import type { AstroConfig, AstroIntegration, RedirectConfig } from "astro";
7
import { glob } from "glob";
8
import { extname } from "node:path";
9
import { fileURLToPath } from "node:url";
@@ -60,16 +55,3 @@ async function enumerateAssets(
60
55
: []
61
56
);
62
57
}
63
-
64
-function filterRoutes(
65
- routes: IntegrationResolvedRoute[]
66
-): IntegrationResolvedRoute[] {
67
- return routes.filter(
68
- (route) =>
69
- !(
70
- route.type === "redirect" &&
71
- typeof route.redirect === "object" &&
72
- (route.redirect.status as number) === 410
73
- )
74
- );
75
-}
0 commit comments