LoginSignup
4
1

More than 3 years have passed since last update.

GatsbyJS ローカルで開発中のページをスマホでも見る方法

Last updated at Posted at 2020-09-28

ローカルで開発中のページをスマホで確認したい場合は、プライベートIPでアクセス可能にしてあげればスマホでも開発中のページをスマホでも見ることができます

実行コマンド

gatsby develop -H 0.0.0.0

実行後

参考画像1
スマホで赤枠で囲んでいるURLにアクセスすると開発中のページが、閲覧できます。
※ 接続できない場合は、同一のネットワーク環境出ない可能性があるので、ネットワークの接続先を確認しましょう。

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