I have monorepo with multiple clients and I try figure out how to manage axios in this project.
Assumptions:
- Multiple clients may or may not have the same interceptors,
- clients have shared API endpoints (shared composables i.e. user.composable -> getUser(): IUser), but also have own ( user.composable -> getClientXData(): unknown) which cannot be compiled and visible at others builds.
monorepo/
├─ apps/
│ ├─ client1/
│ │ ├─ composables/
│ │ │ ├─ user.composable.ts
│ ├─ client2/
│ │ ├─ composables/
│ │ │ ├─ user.composable.ts
│ ├─ client3/
│ │ ├─ composables/
│ │ │ ├─ user.composable.ts
├─ packages/
│ ├─ composables/
│ │ ├─ user.composable.ts
│ ├─ models/
│ │ ├─ IUser.ts
Do you have any ideas how to manage this?