next.js/test/e2e/app-dir/app-validation/app/layout.js
layout.js20 lines488 B
export default function Root({ children }) {
  return (
    <html>
      <head>
        <title>Hello World</title>
        <script
          dangerouslySetInnerHTML={{
            __html: `if (location.search.includes('bot')) {
              Object.defineProperty(navigator, 'userAgent', {
                value: new URLSearchParams(location.search).get("useragent"),
              });
            }`,
          }}
        />
      </head>
      <body>{children}</body>
    </html>
  )
}
Quest for Codev2.0.0
/
SIGN IN