Skip to content

Commit d3a410f

Browse files
fix: use path.sep in redirect-apps template exclusion for Windows compatibility (calcom#28301)
* fix: use path.sep in redirect-apps template exclusion for Windows compatibility * fix: normalize backslashes instead of using path.sep --------- Co-authored-by: Romit <85230081+romitg2@users.noreply.github.com>
1 parent 5a7e783 commit d3a410f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/app-store-cli/src/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ function generateFiles() {
492492
const redirectAppSlugs: string[] = [];
493493
forEachAppDir((app) => {
494494
// Exclude templates - they are not actual apps
495-
if (app.externalLink && !app.path.startsWith("templates/")) {
495+
if (app.externalLink && !app.path.replace(/\\/g, "/").startsWith("templates/")) {
496496
redirectAppSlugs.push(app.name);
497497
}
498498
});

0 commit comments

Comments
 (0)