Moves the `v2-` de-dup (needed because getPascalCaseRouteName folds the v2/ URL segment into the base) into the unit-tested v2RouteName helper and simplifies the vite.config.ts call site to v2RouteName(raw, nodePath). Removes the duplicated isV2 detection. No behavioural change: /v2/dashboard still resolves to route name v2-dashboard; v1 names unchanged. Addresses the Task 3 code-review Important finding. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Crewli — Organizer SPA
Main product UI for organisation and event staff (Vue 3 + Vuexy + Vuetify). Lives in this repo; only re-copy from Vuexy when upgrading the template.
Setup
- Install dependencies:
pnpm install
- Create
.env.local:
VITE_API_URL=http://localhost:8000/api/v1
VITE_APP_NAME="Crewli Organizer"
- Dev server uses port 5174 (see
vite.config.tsor run from repo root:make app).
pnpm dev --port 5174
Port
Runs on http://localhost:5174
Production: e.g. VITE_API_URL=https://api.crewli.app/api/v1 and host the SPA at https://crewli.app (see api/.env.example for FRONTEND_APP_URL and SANCTUM_STATEFUL_DOMAINS).