Repository navigation
fix(dev): polish and improve dev command output - #7249
Merged
Merged
Conversation
This is a regression in the loading spinner shown before "Waiting for framework port", introduced in 19.0.3.
See: 1. #7026 2. #7131 3. #7124 Oops, I was really overthinking this. All this needs to do is, every time a chunk comes in from the underlying framework dev server, clear the spinner line, write the chunk, then resume the spinner. This wasn't set up right at all, which was obfuscated by the erroneous use of `isSpinning` (see previous commit).
serhalp
force-pushed
the
fix/cpla-2543-dev-cmd-polish
branch
from
May 1, 2025 14:00
fdae15d to
5a99008
Compare
- Reworded messages for clarity and consistency
- I think "Netlify Dev" was a vestige of Netlify CLI's predecessor...? In any case, I
dropped this wording.
- e.g. Starting Netlify Dev with Astro → Starting Astro dev server
- e.g. Waiting for framework port 4321 → Waiting for Astro dev server to be ready on port 4321
- Removed the "🔸 Netlify Dev 🔸" first line (doesn't seem to add anything)
- Attempted to address the common confusion around the two printed URLs (our dev server +
framework server):
- more distinctive box
- 'inverted' colour on the URL (cyan background) to make it stand out the most
- changed `Server now ready on http...` to `Local dev server ready: http...`
- Attempted to address the common confusion around this message: `✔ Waiting for framework
port 4321. This can be configured using the 'targetPort' property in the netlify.toml`
- (Users often think this is an error message. I don't blame them.)
- I changed this to `Waiting for Astro dev server to be ready on port 4321` (where Astro is the framework name)
- I added logic so that after 5 seconds of waiting the message changes to `Still waiting
for server on port 4321 to be ready. Are you sure this is the correct port for your
Astro site? Change this with the targetPort option in your netlify.toml.`.
- Collapse "Injected env var" messages into a single line per source
- ◈ → ⬥
serhalp
force-pushed
the
fix/cpla-2543-dev-cmd-polish
branch
from
May 1, 2025 14:14
5a99008 to
714fb94
Compare
serhalp
marked this pull request as ready for review
May 1, 2025 14:14
khendrikse
approved these changes
May 1, 2025
serhalp
enabled auto-merge (squash)
May 1, 2025 20:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Starting Netlify Dev with Astro→Starting Astro dev serverWaiting for framework port 4321→Waiting for Astro dev server to be ready on port 4321Server now ready on http...→Local dev server ready: http...✔ Waiting for framework port 4321. This can be configured using the 'targetPort' property in the netlify.tomlWaiting for Astro dev server to be ready on port 4321(where Astro is the framework name)Still waiting for server on port 4321 to be ready. Are you sure this is the correct port for your Astro site? Change this with the targetPort option in your netlify.toml..Before
After
Here's an accelerated demo of the waiting message changing after 5s: