You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a refined version of your question, formatted for a GitHub discussion:
Question: Can Modern.js Support Runtime Dynamic App Discovery Without Restarting?
Context
I'm working with a master app in Modern.js that has multiple child apps configured statically in modern.config.ts. However, my goal is to enable dynamic app discovery at runtime — ideally, without needing to restart the master app each time a new app is deployed.
Current Setup
In modern.config.ts, the master app is set up with the following configuration:
Dynamic App Registration: Is there a way to add apps dynamically at runtime (e.g., via API or webhook) so that any newly deployed app can be auto-discovered by the master app without updating modern.config.ts or restarting the host app?
Runtime Config Updates: As modern.config.ts is processed at build time, can certain configurations be loaded or modified dynamically even after the master app is already running?
User/Tenant Context Support: Ideally, I’d like the ability to read user/tenant-specific configurations post-authentication, possibly from an external provider, and adapt the routing or state accordingly.
Additional Information
The goal is to maintain runtime flexibility, allowing for:
Automatic app discovery without a restart.
User or tenant-specific routing configurations that can be fetched and applied dynamically.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here's a refined version of your question, formatted for a GitHub discussion:
Question: Can Modern.js Support Runtime Dynamic App Discovery Without Restarting?
Context
I'm working with a master app in Modern.js that has multiple child apps configured statically in
modern.config.ts
. However, my goal is to enable dynamic app discovery at runtime — ideally, without needing to restart the master app each time a new app is deployed.Current Setup
In
modern.config.ts
, the master app is set up with the following configuration:Requirements
Dynamic App Registration: Is there a way to add apps dynamically at runtime (e.g., via API or webhook) so that any newly deployed app can be auto-discovered by the master app without updating
modern.config.ts
or restarting the host app?Runtime Config Updates: As
modern.config.ts
is processed at build time, can certain configurations be loaded or modified dynamically even after the master app is already running?User/Tenant Context Support: Ideally, I’d like the ability to read user/tenant-specific configurations post-authentication, possibly from an external provider, and adapt the routing or state accordingly.
Additional Information
The goal is to maintain runtime flexibility, allowing for:
Beta Was this translation helpful? Give feedback.
All reactions