在页面 build 内建的时候为组件流入一些属性信息

    1. import { GetStaticProps } from 'next';
    2. export const getStaticProps: GetStaticProps = async (ctx) => {
    3. return {
    4. props: {
    5. name: 'Tom'
    6. }
    7. };
    8. };