-
Notifications
You must be signed in to change notification settings - Fork 15
STRIPES-861-int - Integration of Module Federation feature. #392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ld and serve commands
|
| ]) | ||
| .positional('configFile', stripesConfigFile.configFile) | ||
| .option('federate', { | ||
| describe: 'At platform level, serves an empty host platform, using configured entitlementUrl to procure a list or remote apps. At the module level, this registers/serves the app as a locally federated remote.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typos: "At THE platform...", "a list OF..."
"At the platform level": it also spins up a local registry, right? Should we say that?
| function start(dir, options) { | ||
| const app = express(); | ||
| app.use(express.json()); | ||
| app.use(cors()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wide-open cors() makes Sonar grumpy. Do we think Sonar is correct here and we should limit dev-stuff to localhost, or do we want to leave it wide-open, knowing that it's insecure from some points of view but ack'ing that this is how things go during development when we don't have all those configurations ironed out.


With this update, we shift the POC code to conform to current
stripes-cliAPI.The
buildcommands build to anoutputdirectory by default.At the workspace level with
stripes-core,stripes-connect,stripes-components: (assuming that's where the config file is)Build a module-federation host app:
Serve the host app (dev mode)
At the ui-module level (Builds module bundle for static hosting)
Serving the federated ui-module (dev mode)
Some
serverfeatures have been updated for sake of serving the host app so that it can further be loaded into a separately hosted 'hub'.