How to properly implement dynamic URLs for remotes? #1294
Unanswered
raulsvilar
asked this question in
Q&A
Replies: 1 comment
-
|
Hello. We utilize the same approach after following the related documentation on repack and module-federation . Force should probably be set as true to override the remote config in the rspack.config. There is a warning but for us it doesn`t seem to be a problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I'm working on a React Native module federation setup using Re.Pack and I'm having trouble understanding the correct way to implement dynamic URLs for my remotes. Currently, I can only get it working with the force: true flag, but I suspect this isn't the recommended approach.
I made some tests in a App.tsx with this functions:
My rspack.config.mjs configuration:
Is there a better way to handle dynamic remote URLs? I need to be able to change the remote URLs at runtime?
Environment:
Re.Pack: 5.1.3
@rspack/core: 1.3.4
React Native: 0.80.2
Thanks in advance for any help!
Beta Was this translation helpful? Give feedback.
All reactions