next.js/test/integration/preview-fallback/pages/index.js
index.js13 lines258 B
export const getStaticProps = ({ preview, previewData }) => {
  return {
    props: {
      preview: !!preview,
      previewData: previewData || null,
    },
  }
}

export default function Index(props) {
  return <p id="props">{JSON.stringify(props)}</p>
}
Quest for Codev2.0.0
/
SIGN IN