Skip to content

Commit 336a949

Browse files
authored
normalize / to /index in the pages config option (#1022)
closes #689
1 parent 106c0f5 commit 336a949

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ function normalizePage(spec: any): Page {
192192
let {name, path} = spec;
193193
name = String(name);
194194
path = String(path);
195+
if (path.endsWith("/")) path = `${path}index`;
195196
return {name, path};
196197
}
197198

0 commit comments

Comments
 (0)