rsnext/test/integration/invalid-revalidate-values/pages/ssg.js
JJ Kasper 690fc36ccc
Update revalidate checks (#19796)
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
2020-12-22 20:15:26 +00:00

16 lines
200 B
JavaScript

export default function Page() {
return (
<>
<p>a-ok</p>
</>
)
}
export const getStaticProps = () => {
return {
props: {
hello: 'world',
},
revalidate: 1,
}
}