gatsbyjs / gatsby

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

Issue with automatic port forwarding in GitHub code spaces after upgrading to Gatsby 5 #37765

Open schettn opened 1 year ago

schettn commented 1 year ago

Preliminary Checks

Description

Before upgrading to Gatsby 5, I was able to use GitHub Codespaces and the port was automatically forwarded, allowing me to access my site without any additional configuration. However, after upgrading to Gatsby 5, I noticed that I can no longer access my site without specifying the gatsby develop -H 0.0.0.0 command instead of just gatsby develop.

I'm wondering if this change was intentional or if it's a bug.

Steps to Reproduce

  1. Create a new GitHub code space
  2. Install Gatsby 5
  3. Start a Gatsby develop server using Gatsby develop
  4. Try to access the site from the code space's browser preview or by navigating to the appropriate URL

Expected Result

The site should load without any additional configuration needed.

Actual Result

The site does not load, and I receive an error message indicating that the server could not be reached.

Additional information

I did not have to specify the -h flag with previous versions of Gatsby, and it seems like this change may have broken the automatic port forwarding in GitHub code spaces. Any insight or assistance would be greatly appreciated.

EyaChebbi commented 1 year ago

Hello is anyone working on this right now ?

limistah commented 1 year ago

I am unable to reproduce this.

Steps followed:

Let me know if I am missing something