Skip to content

Commit

Permalink
Feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeyer2115 committed Oct 25, 2023
1 parent d11c575 commit 8c7bd62
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions packages/studio-plugin/src/orchestrators/ParsingOrchestrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,18 @@ export default class ParsingOrchestrator {
);
}

const excludeReservedPagesJSFiles = (filename: string) =>
!(filename.includes("_server") || filename.includes("_client"));
return createFilenameMapping(
this.paths.pages,
this.getOrCreatePageFile,
excludeReservedPagesJSFiles
);
if (this.studioConfig.isPagesJSRepo) {
const excludeReservedPagesJSFiles = (filename: string) =>
!(filename.includes("_server") || filename.includes("_client"));

return createFilenameMapping(
this.paths.pages,
this.getOrCreatePageFile,
excludeReservedPagesJSFiles
);
}

return createFilenameMapping(this.paths.pages, this.getOrCreatePageFile);
}

private getSiteSettings(): SiteSettings | undefined {
Expand Down

0 comments on commit 8c7bd62

Please sign in to comment.