Skip to content

Refactor preview server helpers out of runtime index#328

Merged
chubes4 merged 1 commit into
mainfrom
refactor/preview-server-helpers
May 31, 2026
Merged

Refactor preview server helpers out of runtime index#328
chubes4 merged 1 commit into
mainfrom
refactor/preview-server-helpers

Conversation

@chubes4
Copy link
Copy Markdown
Collaborator

@chubes4 chubes4 commented May 31, 2026

Summary

  • Move preview proxy creation, header forwarding, preview-port availability checks, and local HTTP server helpers into preview-server.ts.
  • Keep runtime boot and WP-CLI bridge orchestration in index.ts while delegating server/proxy plumbing.
  • Preserve preview URL behavior, bridge JSON handling, and port-in-use error behavior.

Testing

  • npm run build
  • npm run command-registry-smoke
  • npm run package-distribution-smoke
  • npm run preview-port-smoke

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Identified and extracted the preview/local-server helper boundary, ran targeted verification, and drafted this PR summary. Chris remains responsible for review and merge.

@chubes4 chubes4 merged commit b4df844 into main May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant