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:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user