Run consumer app without running provider app #3670
-
Hi, is there a way to run the consumer app (standalone) without running the provider app locally? I'm getting |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
You can use the ErrorLoadRemote hook to manipulate the payload based on the lifecycle of your module federation connection. With this you can tap into the args.afterResolve step to intercept a 503 response of the mf-manifest.json http call. Just render some placeholder or an empty container based on your needs to prevent the application from crashing. Let me know if this resolved your issue. :-) |
Beta Was this translation helpful? Give feedback.
You can use the ErrorLoadRemote hook to manipulate the payload based on the lifecycle of your module federation connection.
https://module-federation.io/blog/error-load-remote.html#errorloadremote-hook
With this you can tap into the args.afterResolve step to intercept a 503 response of the mf-manifest.json http call.
Just render some placeholder or an empty container based on your needs to prevent the application from crashing.
Let me know if this resolved your issue. :-)