0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Next.js】SSGのサイトをVercelにデプロイすると `Error: The file "/vercel/path0/out/routes-manifest.json" couldn't be found. This is often caused by a misconfiguration in your project.` とエラー

Last updated at Posted at 2024-07-21

環境

  • Next.js 13.x

エラー

1.png

Next.js13のSSGのサイトをVercelにデプロイしようとしたところ、以下のエラーが出る。

Error: The file "/vercel/path0/out/routes-manifest.json" couldn't be found. This is often caused by a misconfiguration in your project.

原因

メニュー「Settings」→「General」→「Build & Development Settings」の中の「Framework Preset」をNext.jsにしていたことが原因だった。

2.png

解決策

手順1

メニュー「Settings」→「General」→「Build & Development Settings」の中の「Framework Preset」をOtherに変更する

手順2

「Save」ボタンをクリックして保存する

3.png

手順3

メニュー「Deployments」の、失敗していたデプロイに戻り、「Redeploy」ボタンをクリックし、デプロイ後に「Status」がReadyになっていれば完了

4.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?