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 16(Turbopack) + dev container(Docker Desktop WSL)でホットリロードが効かない問題

Posted at

目的

  • 開発速度を上げるためにホットリロードを有効化したい
  • 開発環境はDocker(dev container)に閉じ込めたい

結論

以下のいずれか

  • Next.js 16でデフォルト有効となっている Turbopack ではなく、 webpack を使う (next dev --webpack)
    • ※ ホットリロードは遅い
  • WSLを使わない。Docker Desktopの場合、設定から Use the WSL 2 based engineのチェックを外す
    • image.png
    • (これを選択しました)
  • [未検証] WindowsファイルシステムをWSLにマウントしない

調査ログ

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?