Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,26 @@ export const metadata: Metadata = {
en: "/en", // => https://myplanmate.vercel.app/en
},
},

verification: {
google: "HwFH-3lcPM6",
},
};

export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="ko">
<body>
{/*
<head>
<body>
{/*
Providers๋กœ ๊ฐ์‹ธ๋Š” ์ด์œ :
- React Query์˜ QueryClientProvider๋ฅผ ์ „์—ญ ์ ์šฉ
- ๋ชจ๋“  ํ•˜์œ„ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ๋™์ผํ•œ client & cache ๊ณต์œ 
- useQuery, useMutation ํ›…์ด ์–ด๋””์„œ๋“  ์ •์ƒ ๋™์ž‘
*/}
<Providers>{children}</Providers>
</body>
<Providers>{children}</Providers>
</body>
</head>
Comment on lines 68 to +79

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid nesting <body> inside <head> in root layout

The commit wraps the entire application <body> inside a <head> element. In Next.js app layouts the <html> element must contain sibling <head> and <body> sections; placing <body> inside <head> violates HTML semantics and will trigger DOM nesting warnings and hydration mismatches, meaning the metadata system and Providers component may not mount correctly. Remove the extra <head> wrapper so <body> remains a direct child of <html>.

Useful? React with ๐Ÿ‘ย / ๐Ÿ‘Ž.

</html>
);
}