mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This API has experimental modes for build validation but the dev validation is going to be stable in the next release.
19 lines
503 B
TypeScript
19 lines
503 B
TypeScript
export const instant = {
|
|
level: 'experimental-error',
|
|
unstable_samples: [{ searchParams: { foo: 'bar' } }],
|
|
}
|
|
|
|
export default async function Page({ searchParams }) {
|
|
const search = await searchParams
|
|
return (
|
|
<main>
|
|
<p>
|
|
This page awaits search params, so it should fail validation. That isn't
|
|
really relevant here, we just need it to fail so that we can assert that
|
|
validation ran.
|
|
</p>
|
|
<div>Search: {JSON.stringify(search)}</div>
|
|
</main>
|
|
)
|
|
}
|