gatsbyjs / gatsby

The best React-based framework with performance, scalability and security built in.
https://www.gatsbyjs.com
MIT License
55.23k stars 10.32k forks source link

gatsby develop -H 0.0.0.0 does not return "your network address" #35489

Closed sheryAlinejad closed 2 years ago

sheryAlinejad commented 2 years ago

Preliminary Checks

Description

There are no error message but all I get is the Local host link and not the "on your network" link. gatsby behaviour

Reproduction Link

https://github.com/sheryAlinejad/gatsby-behaviour

Steps to Reproduce

  1. Follow tutorial https://www.linkedin.com/learning/learning-gatsby-14442452/start-and-stop-your-local-gatsby-site?autoSkip=true&autoplay=true&resume=false&u=57080313
  2. cd to gatsby-starter-default
  3. Run gatsby develop -H 0.0.0.0 in terminal
  4. Output should be as https://www.gatsbyjs.com/docs/reference/gatsby-cli/#develop
  5. No error messages, just not publishing on network address.

Expected Result

Output should be as https://www.gatsbyjs.com/docs/reference/gatsby-cli/#develop

Actual Result

You can now view gatsby-starter-default in the browser.

http://localhost:8000/

View GraphiQL, an in-browser IDE, to explore your site's data and schema

http://localhost:8000/___graphql

Note that the development build is not optimized.
To create a production build, use gatsby build

Environment

System:
    OS: Windows 10 10.0.22000
    CPU: (16) x64 Intel(R) Core(TM) i9-9900 CPU @ 3.10GHz
  Binaries:
    Node: 18.0.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.7.0 - C:\Program Files\nodejs\npm.CMD
  Languages:
    Python: 3.10.4
  Browsers:
    Chrome: 100.0.4896.127
    Edge: Spartan (44.22000.120.0), Chromium (100.0.1185.50)
  npmPackages:
    gatsby: ^4.12.1 => 4.12.1
    gatsby-plugin-gatsby-cloud: ^4.12.1 => 4.12.1
    gatsby-plugin-image: ^2.12.1 => 2.12.1
    gatsby-plugin-manifest: ^4.12.1 => 4.12.1
    gatsby-plugin-offline: ^5.12.1 => 5.12.1
    gatsby-plugin-react-helmet: ^5.12.1 => 5.12.1
    gatsby-plugin-sharp: ^4.12.1 => 4.12.1
    gatsby-source-filesystem: ^4.12.1 => 4.12.1
    gatsby-transformer-sharp: ^4.12.1 => 4.12.1
  npmGlobalPackages:
    gatsby-cli: 4.12.1gatsby

Config Flags

module.exports = { siteMetadata: { title: Gatsby Default Starter, description: Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need., author: @gatsbyjs, siteUrl: https://gatsbystarterdefaultsource.gatsbyjs.io/, }, plugins: [ gatsby-plugin-react-helmet, gatsby-plugin-image, { resolve: gatsby-source-filesystem, options: { name: images, path: ${__dirname}/src/images, }, }, gatsby-transformer-sharp, gatsby-plugin-sharp, { resolve: gatsby-plugin-manifest, options: { name: gatsby-starter-default, short_name: starter, start_url: /, background_color: #663399, // This will impact how browsers show your PWA/website // https://css-tricks.com/meta-theme-color-and-trickery/ // theme_color: #663399, display: minimal-ui, icon: src/images/gatsby-icon.png, // This path is relative to the root of the site. }, }, // this (optional) plugin enables Progressive Web App + Offline functionality // To learn more, visit: https://gatsby.dev/offline // gatsby-plugin-offline, ], }

sheryAlinejad commented 2 years ago

Hi, This was not an issue with Gatsby. In my case, I need to set up port forwarding on my router. Issue resolved.