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?

Nextjs on Lambdaで気を付ける点

Posted at

概要

以前動いたコードが動かなくて3時間つぶしたので、忘れないように記載する

内容

基本的にこれに従えばよい。ほかの記事へのリンクなどもしっかりあるのでわかりやすい。

今回問題となった事象は次の通りである。

  1. デプロイされたURLにアクセスしたところ空のファイルがダウンロードされてしまう
  2. run.shの起動スクリプトがこけていることがCloud Watchのログから判明。
  3. 参考サイトコピペであるので正しいはずである。
  4. どうやら、改行コードが違うらしい。<ー解決

改行コードがLFになることで解決可能である。

image.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?