690fc36ccc
This ensures we show an error for string values for `revalidate` since we currently don't handle these and instead it results in `revalidate: false` being used. This also adds tests for our `revalidate` checks to ensure they are triggered correctly and not triggered for valid values. x-ref: https://github.com/vercel/next.js/issues/20310
16 lines
200 B
JavaScript
16 lines
200 B
JavaScript
export default function Page() {
|
|
return (
|
|
<>
|
|
<p>a-ok</p>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export const getStaticProps = () => {
|
|
return {
|
|
props: {
|
|
hello: 'world',
|
|
},
|
|
revalidate: 1,
|
|
}
|
|
}
|