3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWS AmplifyでデプロイしたNext.js(SSRアプリ)が503エラーを出した時

Posted at

実装もある程度できたし一度環境に乗せてみるか。。。

デプロイ完了!早速公開URLを確認!
image.png
……。

#なんやかんや調べて

現時点ではAmplify側がWebpack5に対応できてないという可能性を疑う

#対応(2021/07/04時点での話)

next.config.js
module.exports = {
  ....,
  webpack5: false,   追記
}

next.jsにWebpack5を使用させないようにする

私はこれで解決しました。

3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?