本文へスキップ

Next.jsで静的サイトとしてエクスポートする

bash
next build && next export

スクリプトを、

json
{
  "scripts": {
    "build": "next build && next export"
  }
}

のようにしておくと便利。

参考

検索語を入力