Dev server
TL;DR: Run rspfx dev to preview your web parts on port 4321. Use local preview for UI work and workbench mode for SharePoint APIs.
RSPFx serves your bundles on one port. You get hot rebuilds on save. You pick the mode with your tenant setting.
Troubleshoot
| Symptom | Fix |
|---|---|
Blank page or NET::ERR_CERT_AUTHORITY_INVALID | cert not trusted - run trust step and restart browser |
Load debug scripts shows on every reload | cert or network access not allowed - trust cert and allow access |
Bundle 404 at https://localhost:4321/dist/* | bundle name does not match entryModuleId - check folder and config/config.json |
| Port in use | stop other dev servers or change port in config |
For flag and env var details, see ../../reference/commands.md. For pipeline details, see ../../reference/architecture.md.