From 12f494858ff6ab3272ca2d281f1ce11e43e86dd5 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Fri, 12 Jan 2024 14:34:09 -0500 Subject: [PATCH] Compare content independent of OS slash format (#48687) --- src/frame/lib/create-tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frame/lib/create-tree.js b/src/frame/lib/create-tree.js index ebd3a438b7..0da8c6d7f6 100644 --- a/src/frame/lib/create-tree.js +++ b/src/frame/lib/create-tree.js @@ -35,7 +35,7 @@ export default async function createTree(originalPath, rootPath, previousTree) { } // Throw an error if we can't find a content file associated with the children: entry. // But don't throw an error if the user is running the site locally and hasn't cloned the Early Access repo. - if (originalPath === path.join('content', 'early-access')) { + if (originalPath === 'content/early-access') { return } throw new Error(