Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
BrownBrownBear committed Dec 23, 2024
1 parent 9dfffa6 commit c625768
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion apps/hub/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "../styles/globals.css";
import { readFileSync } from "fs";
import { readFileSync, readdirSync } from "fs";
import path from "path";
import { Metadata } from "next";
import dynamic from "next/dynamic";
Expand Down Expand Up @@ -38,6 +38,22 @@ const PostHogPageView = dynamic(() => import("./PostHogPageView"), {
});

export default async function RootLayout(props: { children: React.ReactNode }) {
// Add directory contents logging
try {
console.log(
"debugging for tokenListUrl",
tokenListUrl,
process.env.NODE_ENV,
process.cwd(),
);
const currentDir = process.cwd();
const files = readdirSync(currentDir);
console.log("Directory contents of", currentDir, ":");
console.log(files);
} catch (error) {
console.error("Error reading directory:", error);
}

const fetchedTokenList = await (tokenListUrl.startsWith("http")
? fetch(tokenListUrl).then((res) => res.json())
: (async () => {
Expand Down

0 comments on commit c625768

Please sign in to comment.