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:
1 parent
5a7e783a0a
commit
d3a410fc53
1 file changed
+1
-1
@@ -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