Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repack monorepo deployment help #490

Closed
heradonbenin opened this issue Jan 30, 2024 · 0 comments
Closed

repack monorepo deployment help #490

heradonbenin opened this issue Jan 30, 2024 · 0 comments
Labels

Comments

@heradonbenin
Copy link

Beginner issue: Can someone give me idea or tutorial how i can deploy.
what i already did.

  1. have create a monorepo with 5 mini app.
  2. have update webpack.config.mjs file by changing the mode to production
  3. have created the build script for each mini app with the command " react-native webpack-bundle --platform ios --entry-file index.js --bundle-output dist/index.js "
    this command create to me a "dist" folder with two file : index.js , index.js.map, and assets folder..

what should be the next ?

  1. transfert the content of each "dist" folder to S3 web hosting and get a url.
  2. how should i change the index.js file of host.
    my current index.js of the host app is
    const resolveURL = Federated.createURLResolver({
    containers: {
    login: 'http://localhost:9000/[name][ext]',
    intro: 'http://localhost:9002/[name][ext]',
    },
    });

should i do something like

const resolveURL = Federated.createURLResolver({
containers: {
login: 'https://login.s3.com/[name][ext]',
intro: 'https://intro.s3.com/[name][ext]',
},
});

  1. the host app should be also deploy? if yes where to use his url?
  2. should i generate a build for android platform ? if yes how to manage ?

too many questions, if we can have have full guideline...

@heradonbenin heradonbenin closed this as not planned Won't fix, can't repro, duplicate, stale Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant