为了跟随本课程,您需要有一个简单的Next.js应用程序。 为此,请下载以下示例应用程序:

    1. git clone https://github.com/arunoda/learnnextjs-demo.git
    2. cd learnnextjs-demo
    3. git checkout getting-started

    你可以运行它:

    1. npm install
    2. npm run dev

    现在,您可以通过 http://localhost:3000/ 访问应用程序