1 year ago

#381406

test-img

avivl

How deploy micro frontend on S3

I'm trying to deploy Micro-frontend on S3, following these instructions:

deploy micro-fronted on AWS.

There are two apps - Remote and Host.

I was able to see the app after the remote upload was successful.

Following the instructions, I changed the remote property inside the module federation plugin to the url that gets from S3 and points directly to remoteEntry.js.

          remoteHome: 'home@http://microfront.poc.s3-website-us-east-1.amazonaws.com/remoteEntry.js'.

When I deploy the host and visit the url, the app does not render its content or the remote app. I see the following logs:

  1. Failed to load resource: the server responded with a status of 404 (Not Found)

  2. ScriptExternalLoadError: Loading script failed. (missing: http://microfront.amazonaws.com/remoteEntry.js) while loading "./Home".

any idea how to do that

reactjs

micro-frontend

webpack-module-federation

0 Answers

Your Answer

Accepted video resources