fix: use path.sep in redirect-apps template exclusion for Windows compatibility (#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 <[email protected]>
This commit is contained in:
Seydi CharyyevandRomit authored and GitHub committed 2026-03-06 16:41:53 +05:30
1 parent 5a7e783a0a
commit d3a410fc53
1 file changed
+1 -1
+1 -1
View File
@@ -492,7 +492,7 @@ function generateFiles() {
const redirectAppSlugs: string[] = [];
forEachAppDir((app) => {
// Exclude templates - they are not actual apps
if (app.externalLink && !app.path.startsWith("templates/")) {
if (app.externalLink && !app.path.replace(/\\/g, "/").startsWith("templates/")) {
redirectAppSlugs.push(app.name);
}
});