Document astro dev --no-lock flag#14212
Conversation
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
|
Preview deployment ✅ Deployment complete!
|
ArmandPhilippot
left a comment
There was a problem hiding this comment.
Mostly a nit regarding formatting (single/two paragraphs as the two statements do not seem to be linked), but I also think it's important to mention what happens when these flags are combined (see my suggestion). Otherwise, LGTM!
| astro dev --no-lock --port 4322 | ||
| ``` | ||
|
|
||
| The new server is not tracked by `astro dev stop`, `astro dev status`, or `astro dev logs`. `--no-lock` cannot be combined with `--background` (including when background mode is triggered automatically for an AI coding agent) or `--force`, since both rely on the lock file. |
There was a problem hiding this comment.
Reading that, I wondered what happens when these flags are combined: does one takes precedence? do I get an error? Looking at the JSDoc, it seems this throws an error. I think it's important to mention it.
Also, I think the parentheses can be shortened.
But, I'm not sure how to combine both in a logical way. I mean the two statements are not tied so I'm not sure a single paragraph makes sense... and maybe two independent paragraphs are easier to scan?
| The new server is not tracked by `astro dev stop`, `astro dev status`, or `astro dev logs`. `--no-lock` cannot be combined with `--background` (including when background mode is triggered automatically for an AI coding agent) or `--force`, since both rely on the lock file. | |
| The new server is not tracked by `astro dev stop`, `astro dev status`, or `astro dev logs`. | |
| When combined with `--background` (including when triggered by an AI coding agent) or `--force`, an error is throwned, as both rely on the lock file. |
Documents the new
astro dev --no-lockflag added in withastro/astro#17331.--no-lockreference section underastro dev--no-lockin theastro devhelp output