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 <85230081+romitg2@users.noreply.github.com>
This commit is contained in:
Seydi Charyyev
2026-03-06 16:41:53 +05:30
committed by GitHub
co-authored by Romit
parent 5a7e783a0a
commit d3a410fc53
+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);
}
});