Preventing load of remote entry file for certain users in Next.js with module federation #1091
Unanswered
RexGalicie
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
In my current project, I'm using Next.js with webpack's module federation feature to implement a microfrontend architecture. I have several modules, one of which (
module2
) should not be accessible to a certain user (user1
).I understand that I can simply prevent the import of the exposed module in Next.js, but I'm looking for a way to prevent even the loading of the
remoteEntry.js
manifest from this remote module for user1.Has anyone encountered a similar scenario or does anyone have suggestions on the best approach to achieve this?
Any guidance or advice would be greatly appreciated. Thank you in advance for your time and help.
Beta Was this translation helpful? Give feedback.
All reactions