Why does Gatsby start a second server at localhost:4000?
See original GitHub issueWhen I create a new gatsby app and run gatsby develop,
it starts a server at localhost:8000 and then a second one on localhost:4000, where I’m able to query things like “allGatsbyPlugin”:
I can’t find documentation on gatsby starting things on ports other than localhost:8000. What is this, why is it here (I discovered it because it’s interfering with something else I run on port 4000), and can I change the port it runs on?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error [HPM] Error occurred while trying to proxy request / from ...
This will start the server. Then run npm start in another terminal window. npm start will call "ng serve --proxy-config ./proxy.json". My ...
Read more >Creating a Source Plugin - Gatsby
This is a GraphQL server running in Node.js and is separate from Gatsby, ... Create a new Gatsby plugin with the gatsby new...
Read more >Subscriptions - Apollo GraphQL Docs
They can maintain an active connection to your GraphQL server (most commonly via WebSocket), enabling the server to push updates to the subscription's...
Read more >Elixir learning: Running a Gatsby blog inside a Phoenix app
server from the base of your project, the my_app directory and opening localhost:4000 in your web browser. The static site generated by Gatsby...
Read more >2. Start the Emulator | Static Web Apps CLI
The SWA Emulator is run by using the swa start command. ... Start the SWA CLI in a new terminal with the dev...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah — 4000 wasn’t a good choice for the default recipes port as it’s used a lot for apps. Opened https://github.com/gatsbyjs/gatsby/pull/24665 to move it to 50400 which is a cool number as it’s a highly composite number! https://en.wikipedia.org/wiki/50,000
@KyleAMathews Thank you!