Skip to content

Usage of Utility Module in Standalone Mode of mife #116

Answered by webJose
PDGallus asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, @PDGallus. Indeed, what you describe is an "issue" I also have at work. In my case, and at least for now, I only need a configuration module that is only available from the root MFE. It is a super, mega simple export of a JS object, where the main property is the environment (possible values are Development, Test, PreProduction and Production).

So what do I have and what did I do? Let's see.

What I have

All non-root MFE's require this configuration file, so the appropriate configuration for each environment is used. I use the wj-config NPM package (also of my crafting) for configuration, and every non-root MFE has a config.js file similar to this:

import wj-config from "wj-config";
i…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@PDGallus
Comment options

@webJose
Comment options

@PDGallus
Comment options

Answer selected by PDGallus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants