Skip to content

Commit

Permalink
chore(docs): debug
Browse files Browse the repository at this point in the history
  • Loading branch information
krisantrobus committed Dec 18, 2024
1 parent acdc43a commit 78eae0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/paste-website/src/pages/sitemap.xml.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 78eae0b

Please sign in to comment.