next.js/test/e2e/app-dir/dynamic-data/fixtures/require-static/app/search/page.js
page.js24 lines612 B
export const dynamic = 'error'

export default async function Page({ searchParams }) {
  return (
    <div>
      <section>
        This example uses `searchParams` but is configured with `dynamic =
        'error'` which should cause the page to fail to build
      </section>
      <section id="searchparams">
        <h3>searchParams</h3>
        {Object.entries(await searchParams).map(([key, value]) => {
          return (
            <div key={key}>
              <h4>{key}</h4>
              <pre className={key}>{value}</pre>
            </div>
          )
        })}
      </section>
    </div>
  )
}
Quest for Codev2.0.0
/
SIGN IN