From 4b49fd3061eb5186f6bbad2d4988b2e6fb13120c Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Fri, 8 Apr 2022 10:46:20 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/get-all-pages.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/get-all-pages.ts b/lib/get-all-pages.ts index ecb1897..89785fe 100644 --- a/lib/get-all-pages.ts +++ b/lib/get-all-pages.ts @@ -34,6 +34,8 @@ export async function getAllPagesImpl( }) if (map[canonicalPageId]) { + // you can have multiple pages in different collections that have the same id + // TODO: we may want to error if neither entry is a collection page console.warn('error duplicate canonical page id', { canonicalPageId, pageId,