Commit b403430
committed
Add project routing with storage and worker backends
Migration 21:
- Replace endpoints table with view combining workers and projects
- Add project_routes with primary key on (project_id, pattern)
- Support storage and worker backend types
- Add triggers to sync main worker and project names
- Add resolve_worker_from_request() for unified routing
CLI:
- Smart URL display: show workers.rocks only for default cloud
- Add is_default_cloud() to Backend trait
- DB backend queries custom domains
- Fix URL formatting based on backend type
Related changes:
- Make DEFAULT_API_URL public in config
- Update workers command to handle different backend URLs1 parent 53f0825 commit b403430
10 files changed
Lines changed: 724 additions & 15 deletions
File tree
- .vscode
- migrations
- src
- backend
- commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments