LoginSignup
1
0

More than 5 years have passed since last update.

Nowを使ってNext.jsのアプリをデプロイする時にFile size limit exceededになる時の対処

Last updated at Posted at 2018-02-16

無料プランだと1MBしかファイル容量が無い

$ now -d

をするとどのファイルでエラーになっているかわかる。
大体Webpackのビルドファイルやsourcemapの容量が1MBを超えているのが原因

$ next build

上記コマンドを事前に実行してと本番用にminifyしてビルドされるので容量が削減される。あとはエラーになったsoucemapファイルを削除しておく。

$ now -d

それらを対策してからnowすればデプロイされるはず

1
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
1
0