We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 036bedc commit 4647607Copy full SHA for 4647607
lib/middleware.ts
@@ -29,7 +29,7 @@ interface MiddlewareOptions {
29
30
function findClosestIndexFileForPath(outputPath: string, prefix: string): string | undefined {
31
const candidates = [];
32
- const parts = prefix.slice(0).split('/');
+ const parts = prefix.split('/');
33
while (parts.length) {
34
parts.pop();
35
candidates.push(resolvePath(outputPath, [...parts, 'index.html'].join(path.sep)));
0 commit comments