@atlashub/smartstack-cli 4.10.0 → 4.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -52,6 +52,16 @@ const applicationRoutes: ApplicationRouteExtensions = {
|
|
|
52
52
|
|
|
53
53
|
Routes are automatically injected into BOTH standard (`/{application}/...`) and tenant-prefixed (`/t/:slug/{application}/...`) route trees by `mergeRoutes()`. No manual duplication needed.
|
|
54
54
|
|
|
55
|
+
#### Custom Applications (Pattern A)
|
|
56
|
+
|
|
57
|
+
Custom application keys (any key **not** in the built-in list: `administration`, `support`, `user`, `api`) are fully supported in `applicationRoutes`. `mergeRoutes()` automatically:
|
|
58
|
+
|
|
59
|
+
1. Creates a new route entry wrapped in `<AppLayout />`
|
|
60
|
+
2. Injects it into **both** standard (`/{app-key}/...`) and tenant-prefixed (`/t/:slug/{app-key}/...`) trees, inside `TenantRouteWrapper > RouteGuard > LicenseGuard`
|
|
61
|
+
3. Generates automatic parent redirect routes (e.g., `employees` → `employees/management`)
|
|
62
|
+
|
|
63
|
+
No need to use Pattern B for custom applications — Pattern A handles everything automatically.
|
|
64
|
+
|
|
55
65
|
### Pattern B: JSX Routes
|
|
56
66
|
|
|
57
67
|
**If App.tsx contains:** `<Route path="/{application}" element={<{Layout} />}>`
|
|
@@ -48,6 +48,16 @@ const applicationRoutes: ApplicationRouteExtensions = {
|
|
|
48
48
|
|
|
49
49
|
Routes are automatically injected into BOTH standard (`/{application}/...`) and tenant-prefixed (`/t/:slug/{application}/...`) route trees by `mergeRoutes()`. No manual duplication needed.
|
|
50
50
|
|
|
51
|
+
#### Custom Applications (Pattern A)
|
|
52
|
+
|
|
53
|
+
Custom application keys (any key **not** in the built-in list: `administration`, `support`, `user`, `api`) are fully supported in `applicationRoutes`. `mergeRoutes()` automatically:
|
|
54
|
+
|
|
55
|
+
1. Creates a new route entry wrapped in `<AppLayout />`
|
|
56
|
+
2. Injects it into **both** standard (`/{app-key}/...`) and tenant-prefixed (`/t/:slug/{app-key}/...`) trees, inside `TenantRouteWrapper > RouteGuard > LicenseGuard`
|
|
57
|
+
3. Generates automatic parent redirect routes (e.g., `employees` → `employees/management`)
|
|
58
|
+
|
|
59
|
+
No need to use Pattern B for custom applications — Pattern A handles everything automatically.
|
|
60
|
+
|
|
51
61
|
### Pattern B: JSX Routes
|
|
52
62
|
|
|
53
63
|
**If App.tsx contains:** `<Route path="/{application}" element={<{Layout} />}>`
|