Issues with Deploy

Hi, I'm having issues deploying my application using Zephyr Cloud. Here’s the context: I created two repositories using create-mf-app with the following setup: Framework: React React version: 19 Styling: Tailwind CSS Deployment: Zephyr Everything was working fine until version 181 — I was able to build and deploy both apps without any issues. Now, although I can still build the apps successfully and run them locally without problems, I'm no longer able to deploy them to Zephyr. The automatic deploy simply doesn't happen — and I don’t see any build errors to help debug this. I also tried deploying using GitHub Actions, but nothing happens either. Here are my applications on Zephyr: 🔗 https://app.zephyr-cloud.io/org/dadarkp3 Here are the repositories: 📦 Host repo: https://github.com/Dadarkp3/weather-app-host 📦 Remote repo: https://github.com/Dadarkp3/shared-ui-remote Any help or guidance would be appreciated!
GitHub
GitHub - Dadarkp3/weather-app-host
Contribute to Dadarkp3/weather-app-host development by creating an account on GitHub.
GitHub
GitHub - Dadarkp3/shared-ui-remote
Contribute to Dadarkp3/shared-ui-remote development by creating an account on GitHub.
26 Replies
Néstor
Néstor4mo ago
Hey Hey Lemme have a look Hey @Dadarkp3 you're using an older version of our plugin. Upgrade it to use version 0.0.47 and it should work no problem 😄
valorkin
valorkin4mo ago
marker 0.0.50 marked as latest
Rodrigo Y.
Rodrigo Y.4mo ago
hey @Dadarkp3 let me know when you see these we have a few more steps we can try
Daiane Mascarenhas
Daiane MascarenhasOP4mo ago
Hello team sorry for the late update. I will update the project and validate, but, locally it’s working as it should, but if this fix I will try and open a PR to update the zephyr plugin on the create-mf-app. Thanks for all the help!! 😆 Thanks team, is working! Going to reporte the issue and see if I can open the PR for the project! Hey team, quick question. Do I need to have a pay subscription to push this in production? Or am I missing a configuration? I can only see my project If I run it locally, I build, I see that we have the production environment correct, I have the dist folder that we build. My public path outside of development is to auto. 🤔
Rodrigo Y.
Rodrigo Y.4mo ago
you don't need subscription to deploy could you share the deployed URL? maybe we can help you there
Daiane Mascarenhas
Daiane MascarenhasOP4mo ago
For my remote
pnpm run build

> shared-ui-remote@1.0.1 build
> NODE_ENV=production rspack build

[ Module Federation Manifest Plugin ] Warn Manifest will use absolute path resolution via its host at runtime, reason: publicPath='auto'
ZEPHYR Hi daiane_silva!
ZEPHYR shared-ui-remote.shared-ui-remote.dadarkp3#350
ZEPHYR
[ Module Federation Dev Server ] Success Federated types created correctly
ZEPHYR Uploaded ci snapshot in 400ms
ZEPHYR (2/51 assets uploaded in 568ms, 182.49kb)
ZEPHYR Deployed to Zephyr's edge in 818ms.
ZEPHYR
ZEPHYR https://daiane-silva-350-shared-ui-remote-shared-ui-remot-6f49f18c4-ze.zephyrcloud.app
pnpm run build

> shared-ui-remote@1.0.1 build
> NODE_ENV=production rspack build

[ Module Federation Manifest Plugin ] Warn Manifest will use absolute path resolution via its host at runtime, reason: publicPath='auto'
ZEPHYR Hi daiane_silva!
ZEPHYR shared-ui-remote.shared-ui-remote.dadarkp3#350
ZEPHYR
[ Module Federation Dev Server ] Success Federated types created correctly
ZEPHYR Uploaded ci snapshot in 400ms
ZEPHYR (2/51 assets uploaded in 568ms, 182.49kb)
ZEPHYR Deployed to Zephyr's edge in 818ms.
ZEPHYR
ZEPHYR https://daiane-silva-350-shared-ui-remote-shared-ui-remot-6f49f18c4-ze.zephyrcloud.app
For my host
pnpm run build

> weather-app-host@1.0.1 build
> NODE_ENV=production rspack build

[ Module Federation Manifest Plugin ] Warn Manifest will use absolute path resolution via its host at runtime, reason: publicPath='auto'
ZEPHYR Hi daiane_silva!
ZEPHYR weather-app-host.weather-app-host.dadarkp3#349
ZEPHYR
ZEPHYR No assets to upload, skipping...
ZEPHYR Uploaded ci snapshot in 469ms
ZEPHYR Deployed to Zephyr's edge in 638ms.
ZEPHYR
ZEPHYR https://daiane-silva-349-weather-app-host-weather-app-hos-06ba3207d-ze.zephyrcloud.app

Rspack compiled successfully in 1.30 s
pnpm run build

> weather-app-host@1.0.1 build
> NODE_ENV=production rspack build

[ Module Federation Manifest Plugin ] Warn Manifest will use absolute path resolution via its host at runtime, reason: publicPath='auto'
ZEPHYR Hi daiane_silva!
ZEPHYR weather-app-host.weather-app-host.dadarkp3#349
ZEPHYR
ZEPHYR No assets to upload, skipping...
ZEPHYR Uploaded ci snapshot in 469ms
ZEPHYR Deployed to Zephyr's edge in 638ms.
ZEPHYR
ZEPHYR https://daiane-silva-349-weather-app-host-weather-app-hos-06ba3207d-ze.zephyrcloud.app

Rspack compiled successfully in 1.30 s
Rodrigo Y.
Rodrigo Y.4mo ago
oh, I see, so you're trying to deploy across repositories that might come into an issue here add the following property on your package.json for the host:
// ...
"zephyr:dependencies": {
"shared-ui-remote": "zephyr:shared-ui-remote.shared-ui-remote.dadarkp3@latest"
}
// ...
"zephyr:dependencies": {
"shared-ui-remote": "zephyr:shared-ui-remote.shared-ui-remote.dadarkp3@latest"
}
this is about to be documented on our docs website though
Daiane Mascarenhas
Daiane MascarenhasOP4mo ago
Did this, but the issue still remains. https://daiane-silva-354-weather-app-host-weather-app-hos-d9ab79d41-ze.zephyrcloud.app I think its because of this on my host, should add a validation to see if we are in production to use the correct path? I just don't know the correct path in the case of the latest version of my shared-ui.remote repo:
remotes: {
shared_ui_remote: "shared_ui_remote@http://localhost:8081/remoteEntry.js",
},
remotes: {
shared_ui_remote: "shared_ui_remote@http://localhost:8081/remoteEntry.js",
},
Rodrigo Y.
Rodrigo Y.4mo ago
oh, replace with underscores on the left-hand side then sorry, I missed that
Daiane Mascarenhas
Daiane MascarenhasOP4mo ago
Should I replace with underscores on the left-hand side where?
Rodrigo Y.
Rodrigo Y.4mo ago
// ...
"zephyr:dependencies": {
"shared_ui_remote": "zephyr:shared-ui-remote.shared-ui-remote.dadarkp3@latest"
}
// ...
"zephyr:dependencies": {
"shared_ui_remote": "zephyr:shared-ui-remote.shared-ui-remote.dadarkp3@latest"
}
Daiane Mascarenhas
Daiane MascarenhasOP4mo ago
"zephyr:dependencies": { "shared_ui_remote": "zephyr:shared-ui-remote.shared-ui-remote.dadarkp3@latest" } it looks like its working! Quick question, how does this work? 🤔 under the hood Zephyr just replaces my url inside the mfConfig remotes? Because thats amazing!
Rodrigo Y.
Rodrigo Y.4mo ago
the remotes is the only part we're replacing so yeah this way you can resolve to zephyr deployed remotes
Daiane Mascarenhas
Daiane MascarenhasOP4mo ago
Nice, thanks for the explanation, going to take a look with monorepo and Nx now.
Rodrigo Y.
Rodrigo Y.4mo ago
that's great to hear! monorepo and Nx, as long as you are deploying under the same repository/project, you don't need the package.json specification
Daiane Mascarenhas
Daiane MascarenhasOP4mo ago
Just a quick update, the PR updating the plugin inside create-mf-app was merged.
MEE6
MEE64mo ago
GG @Dadarkp3, you just advanced to level 2!
Rodrigo Y.
Rodrigo Y.4mo ago
heey! which one do you mean? can you remind us please?
Daiane Mascarenhas
Daiane MascarenhasOP4mo ago
Oh yeah. Me and anyone that were using the template from create-mf-app to generate microfrontends with module federation, were having issues deploying with Zephyr because the template was generating repos with old versions of zephyr plugin. To fix that, so people stop coming here with the same issue everyday, i opened an Issue to the repo, create a PR with the fix. It was merged yesterday so I think this will mitigate the future problems popping up here about this
Rodrigo Y.
Rodrigo Y.4mo ago
ohhh I do remember it how! thank you so much for your help! we appreciate it a lot!
Daiane Mascarenhas
Daiane MascarenhasOP4mo ago
No problem!
Rodrigo Y.
Rodrigo Y.4mo ago
I'm currently in the process of updating our own examples as well so they will be clean, fresh and working soon
Daiane Mascarenhas
Daiane MascarenhasOP4mo ago
Thanks!! I’m messing around with Vite now and zephyr let me know and I can give the feedback on following the doc about it!
Rodrigo Y.
Rodrigo Y.4mo ago
anything you need on that end just let us know we did introduce support for MF on Vite quite recently so if anything pops up, don't hesitate to reach out here
Daiane Mascarenhas
Daiane MascarenhasOP4mo ago
Ohhh ok, will follow set by set and see if I can make it work only following the doc and any problems I will add in a new thread

Did you find this page helpful?