docs: add PowerShell Pages deployment cleanup example#31756
Conversation
Review
This PR has already received 2 automatic reviews. To run another review, a codeowner can comment
✅ No issues found in commit Code ReviewThis code review is in beta and may not always be helpful — use your judgment. No code review issues found. ConventionsChecks PR title, description, and redirect checklist. No convention issues found. Style Guide ReviewNo style-guide issues found. RedirectsNo missing redirect entries found. CommandsOnly codeowners can run commands. Post a comment with the command to trigger it.
|
Replace both the macOS/Linux and Windows PowerShell examples with versions that take the project name as an argument, detect the production deployment via its Environment field, and delete preview deployments in parallel.
|
I’ve reworked this a bit along with the shell script at the same time to catch the production env, throw if we don’t detect it, improve parallel deletion and use project name as an argument. |
When no production deployment exists, the cleanup scripts now explain that one is required and point to deploying to the production branch (with an example wrangler command) instead of failing with a bare abort message.
|
Thanks for tightening both examples, Mattie. The production-environment detection and clearer argument-based usage make the guide much stronger. |
|
Hey there, we've marked this pull request as stale because there's no recent activity on it. This label helps us identify PRs that might need updates (or to be closed out by our team if no longer relevant). |
|
/rebase |
|
Moved to #32273 — pushing to this branch requires write access to your fork, which I don't have, so I opened the continuation from a branch on the main repo instead. Closing this one. |
Pull request was closed
Summary
ConvertFrom-Jsoninstead ofjqCloses #31753
Validation
git diff --checkNote: I attempted
pnpm exec prettier --check src/content/docs/pages/platform/known-issues.mdx, but it timed out locally after the dependency install did not complete within two minutes. I stopped the stale local processes and did not keep generated dependency files.