I’m trying to figure out which command I should be running with Netlify CLI. Netlify recommends eleventy --serve, but that already fires up Browsersync, which means I now have servers running on 8080 and 8888.
The docs also recommend using 8080, but that conflicts with Browsersync. Is the solution here just as simple as ignoring the server running on 8888?
Netlify CLI needs your SSG’s server to run. In any case, your app’s server is going to run and Netlify CLI is going to proxy the requests to that server.
Note that, Netlify-specific features like Functions and redirects would only work with 8888 (the port that CLI is running on).
So just to be completely clear… 11ty/Browsersync on 8080 and Netlify Dev on 8888 are preferred, correct?
Here’s what the docs say:
If you’re using the CLI to run Netlify Dev for a local development environment, Netlify also suggests a dev command and port: eleventy --serve and 8080.