Skip to content

Commit a63d28f

Browse files
authored
[saas-microservices] Add mermaid diagram to show route splitting (#1191)
### Description <!-- ✍️ Write a short summary of your work. Screenshots and videos are welcome! --> ### Demo URL <!-- Provide a URL to a live deployment where we can test your PR. If a demo isn't possible feel free to omit this section. --> ### Type of Change - [ ] New Example - [ ] Example updates (Bug fixes, new features, etc.) - [ ] Other (changes to the codebase, but not to examples) ### New Example Checklist - [ ] 🛫 `npm run new-example` was used to create the example - [ ] 📚 The template wasn't used but I carefuly read the [Adding a new example](https://github.com/vercel/examples#adding-a-new-example) steps and implemented them in the example - [ ] 📱 Is it responsive? Are mobile and tablets considered?
1 parent a74efd6 commit a63d28f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

solutions/saas-microservices/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,14 @@ There are 3 separate applications in this example:
2323

2424
These all run under the same domain. Paths to each application are routed using Vercel's [microfrontends](https://vercel.com/docs/microfrontends) support:
2525

26-
- `/api/dashboard/*` - Routes to the `api-dashboard` backend
27-
- `/api/users/*` - Routes to the `api-users` backend
28-
- Everything else - Routes to the `dashboard` application
26+
```mermaid
27+
graph TD
28+
Request --> Vercel{Vercel}
29+
30+
Vercel -->|"/api/dashboard/*"| ApiDashboard[api-dashboard]
31+
Vercel -->|"/api/users/*"| ApiUsers[api-users]
32+
Vercel -->|"Everything else"| DashboardApp[Dashboard]
33+
```
2934

3035
## Running Locally
3136

0 commit comments

Comments
 (0)