Title here
Summary here
You have DeskFlow’s Moonlight API running on port 8000 and want a React or Vue task board that calls task.list and member.login — same origin in production, proxied /api during local dev.
frontend:scaffold vs composer create-project … --react-ts:5173) proxies to Pionia (:8000)public/) and how SPA fallback workstask.list returns data on 8000member.login in the SPAPionia ships optional Vite scaffolding so DeskFlow can have a React or Vue task board calling task.list over the same origin in production.
| Page | What you build |
|---|---|
| Vite integration | Dev proxy, build to public/, SPA fallback |
Quick start:
php pionia frontend:scaffold --framework=react-ts --yes
php pionia serve # terminal 1 — API on :8000
php pionia frontend:dev # terminal 2 — Vite on :5173php pionia serve — API calls to /api fail with connection errorshttp://127.0.0.1:8000 in frontend fetch URLs — use relative /api/v1/ so production same-origin worksfrontend:build before deploy — production serves from public/, not frontend/[cors] for :5173 when testing auth headers from the browserScaffold, dev, build, and CORS setup.
apiVersionPath() for frontend config.
Send Bearer JWT from the SPA.