Next.jsはReactをベースにしたフロントエンドフレームワーク
$ npx create-next-app netlify-nextjs --use-npm --example "https://github.com/vercel/next-learn-starter/tree/master/learn-starter"
$ cd netlify-nextjs
$ npm run dev
GitHubでリポジトリ作成して、
$ git remote add origin git@github.com:hiroyuki12/netlify-nextjs.git
$ git branch -M main
$ git push -u origin main
$ npm run build
netlifyにログインして、
New site from Gitボタンを押して、
作成したリポジトリを選択
Base directoryは/に設定