rsnext/test/integration/production/pages/fully-static.js
Tim Neutkens 260707de68
Add etag support for getServerSideProps/getStaticProps pages (#14760)
Fixes #11711

Also cleaned up some extra code.

This was already supported on the Vercel edge network.
2020-07-01 14:59:18 +00:00

11 lines
205 B
JavaScript

export async function getStaticProps() {
return {
props: {
myStaticProp: 'hello world',
},
}
}
export default function FullyStatic({ myStaticProp }) {
return <h1>{myStaticProp}</h1>
}