fix: set the language code attribute in <html> tag to "en-US" for both app router and pages router
Some checks failed
Deploy Next.js application / deploy (push) Failing after 24m4s
Some checks failed
Deploy Next.js application / deploy (push) Failing after 24m4s
This commit is contained in:
parent
1a4fb6246b
commit
725912bbe6
2 changed files with 14 additions and 1 deletions
|
@ -46,7 +46,7 @@ export default function RootLayout({
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en-US" suppressHydrationWarning>
|
||||||
<body className={`antialiased ${poppins.className}`}>
|
<body className={`antialiased ${poppins.className}`}>
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
attribute="class"
|
attribute="class"
|
||||||
|
|
13
pages/_document.tsx
Normal file
13
pages/_document.tsx
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import { Html, Head, Main, NextScript } from "next/document";
|
||||||
|
|
||||||
|
export default function Document() {
|
||||||
|
return (
|
||||||
|
<Html lang="en-US">
|
||||||
|
<Head />
|
||||||
|
<body>
|
||||||
|
<Main />
|
||||||
|
<NextScript />
|
||||||
|
</body>
|
||||||
|
</Html>
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in a new issue