From 78eae0b802b7af360764da0e5217ae8998c962f0 Mon Sep 17 00:00:00 2001 From: Kristian Antrobus Date: Wed, 18 Dec 2024 16:13:45 -0600 Subject: [PATCH] chore(docs): debug --- packages/paste-website/src/pages/sitemap.xml.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/paste-website/src/pages/sitemap.xml.tsx b/packages/paste-website/src/pages/sitemap.xml.tsx index 9a4d60a9a0..7b2b01669d 100644 --- a/packages/paste-website/src/pages/sitemap.xml.tsx +++ b/packages/paste-website/src/pages/sitemap.xml.tsx @@ -7,14 +7,15 @@ const Sitemap = (): React.ReactElement | null => { }; export const getServerSideProps: GetServerSideProps = async ({ res }) => { - noStore(); const BASE_URL = "https://paste.twilio.design"; // Get a list of all pages currently in the site, must be mdx and not tsx which they all currently are const uncompiledPaths = await globby(["**/*.mdx"]); + const cachedpaths = await globby(["**/*"], { cwd: __dirname }); + // eslint-disable-next-line no-console - console.log(uncompiledPaths); + console.log(cachedpaths); // eslint-disable-next-line no-console console.log(process.cwd(), __dirname);