Skip to content
Snippets Groups Projects
Commit 56ad9237 authored by Yusuf Akgül's avatar Yusuf Akgül :hatching_chick:
Browse files

check why error on prod?

parent b865d8a1
No related branches found
No related tags found
No related merge requests found
Pipeline #39713 canceled
......@@ -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={
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment