Skip to content

Commit 7e544a7

Browse files
committed
fixing builtPages to properly grab the nested page paths instead of only the directory for each page
1 parent e38db34 commit 7e544a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ module.exports = {
7070

7171
const builtPages = glob
7272
.sync(`${PUBLISH_DIR}/**/*.html`)
73-
.map((p) => path.dirname(p.replace(PUBLISH_DIR, '')));
73+
.map((p) => p.replace(PUBLISH_DIR, ''));
74+
75+
console.log(`Found ${builtPages.length} pages...`);
76+
builtPages.forEach(p => console.log(`> ${p}`));
7477

7578
await createEnvFile({ inputs, builtPages });
7679
const results = await runCypress({ utils, port });

0 commit comments

Comments
 (0)