Serve banner
bluzir bluzir

Serve

Development community

Description

--- description: Start a local http server on 127.0.0.1:4567 to avoid file:// CORS issues. Required for React/Babel artifacts that load external .jsx files. argument-hint: [port] allowed-tools: Bash(python3:*) Bash(lsof:*) Bash(sleep:*) Bash(curl:*) --- # Serve Start a local http server on port `$0` (default 4567). Needed for any artifact that loads external `.jsx` through `<script src>` + `type="text/babel"` — Babel-standalone uses XHR, which fails on `file://` due to CORS. ## Steps 1. Port

Installation

Installs to ~/.claude/commands/bluzir-claude-code-design-serve.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/bluzir/claude-code-design/HEAD/.claude/commands/serve.md -o ~/.claude/commands/bluzir-claude-code-design-serve.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository