Dev environment starting servers on both :3000 and :8888

refcode.netlify.app

When I run netlify dev it launches the environment in two ports and opens two separate windows. The output shows both ports as well:

You can now view refcode-app in the browser.

  Local:            http://localhost:3000
  On Your Network:  http://192.168.86.53:3000

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


   ┌─────────────────────────────────────────────────┐
   │                                                 │
   │   ◈ Server now ready on http://localhost:8888   │
   │                                                 │
   └─────────────────────────────────────────────────┘

See how it is running on both :3000 and :8888.

Hi @brenton,

That’s how it works! :3000 is the one started by your SSG. :8888 is the one started by Netlify Dev. Netlify-specific features like Functions won’t work on :3000. However, if you’re getting 2 tabs, you should either disable the opening of a browser window in your SSG’s settings (recommended as it makes more sense to disable this) or Netlify Dev’s config.

2 Likes