From 56ad923727cd977336efd2d597f26d00547d34a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Yusuf=20Akg=C3=BCl?= <s86116@bht-berlin.de>
Date: Sat, 8 Jul 2023 19:27:45 +0200
Subject: [PATCH] check why error on prod?

---
 app/(content)/(user)/[username]/(profile)/layout.tsx | 2 +-
 app/api/users/[username]/route.ts                    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/(content)/(user)/[username]/(profile)/layout.tsx b/app/(content)/(user)/[username]/(profile)/layout.tsx
index f79ac51..6e61133 100644
--- a/app/(content)/(user)/[username]/(profile)/layout.tsx
+++ b/app/(content)/(user)/[username]/(profile)/layout.tsx
@@ -17,7 +17,7 @@ export default async function ProfileLayout({
     children: React.ReactNode
 }) {
     const user = await fetch(getURL(`/api/users/${params.username}`)).then((result) => result.json())
-
+    console.log("layout layer", user)
     return (
         <GlobalLayout
             mainContent={
diff --git a/app/api/users/[username]/route.ts b/app/api/users/[username]/route.ts
index e089b9b..096a535 100644
--- a/app/api/users/[username]/route.ts
+++ b/app/api/users/[username]/route.ts
@@ -4,7 +4,7 @@ import { z } from "zod"
 
 export async function GET(request: Request, context: { params: { username: string } }) {
     const { username } = context.params
-
+    console.log("api layer", username)
     const idSchema = z.string()
     const zod = idSchema.safeParse(username)
 
-- 
GitLab