Covers: API routing with prefix, 404 without prefix, bare path redirect, __BASE_PATH__ injection, SPA fallback, -b flag, env var fallback. Also fix unused import in SyncPage.tsx (broke tsc). Ref: #85