diff --git a/apps/web/src/app/(account)/dashboard/address-book/page.tsx b/apps/web/src/app/(account)/dashboard/address-book/page.tsx index 1995834..5828d36 100644 --- a/apps/web/src/app/(account)/dashboard/address-book/page.tsx +++ b/apps/web/src/app/(account)/dashboard/address-book/page.tsx @@ -7,17 +7,17 @@ export const metadata = { }; const AddressBookPage = async () => { - const cookie = getCookieString('connect.sid'); - const queryClient = new QueryClient(); + // const cookie = getCookieString('connect.sid'); + // const queryClient = new QueryClient(); - await queryClient.prefetchQuery({ - queryKey: ['addresses'], - queryFn: async () => - await fetch(`${baseURL}${ADDRESSES_ROUTE}`, { - credentials: 'include', - headers: { cookie }, - }), - }); + // await queryClient.prefetchQuery({ + // queryKey: ['addresses'], + // queryFn: async () => + // await fetch(`${baseURL}${ADDRESSES_ROUTE}`, { + // credentials: 'include', + // headers: { cookie }, + // }), + // }); return ; }; diff --git a/apps/web/src/app/(account)/layout.tsx b/apps/web/src/app/(account)/layout.tsx index 67943ca..d4823dc 100644 --- a/apps/web/src/app/(account)/layout.tsx +++ b/apps/web/src/app/(account)/layout.tsx @@ -4,17 +4,17 @@ import { QueryClient } from '@tanstack/react-query'; import React, { PropsWithChildren } from 'react'; const AccountLayout = async (props: PropsWithChildren) => { - const cookie = getCookieString('connect.sid'); - const queryClient = new QueryClient(); + // const cookie = getCookieString('connect.sid'); + // const queryClient = new QueryClient(); - await queryClient.prefetchQuery({ - queryKey: ['me'], - queryFn: async () => - await fetch(`${baseURL}/users/me`, { - credentials: 'include', - headers: { cookie }, - }), - }); + // await queryClient.prefetchQuery({ + // queryKey: ['me'], + // queryFn: async () => + // await fetch(`${baseURL}/users/me`, { + // credentials: 'include', + // headers: { cookie }, + // }), + // }); return (