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

Multi-app support #21635

Open
1 of 6 tasks
Tracked by #13367
danielroe opened this issue Jun 19, 2023 · 14 comments
Open
1 of 6 tasks
Tracked by #13367

Multi-app support #21635

danielroe opened this issue Jun 19, 2023 · 14 comments

Comments

@danielroe
Copy link
Member

danielroe commented Jun 19, 2023

Tasks

@jeantil
Copy link

jeantil commented Sep 20, 2023

As far as I understand this feature is the only hope to have full microfrontend support.

  • Layers imply build time dependencies
  • vite-federation-plugin can import bits of a nuxt app but the scoped css support is broken making it difficult/impossible to use for larger projects wich are the ones that benefit most of micro-frontend.

The best we could come up with for our migration from pure vue 3 apps to nuxt is to use iframes which has practical limits.

@localusercamp
Copy link

I hope this will be a great opportunity to easily scaffold a DDD application.

@BusinessOfTechnology
Copy link

Is this app as in the concept of App in Vue, or apps like plugin apps on a CMS?

@OlaAlsaker
Copy link

OlaAlsaker commented Oct 19, 2023

Is this app as in the concept of App in Vue, or apps like plugin apps on a CMS?

As I understand it, the multi-app feature is designed for combining multiple Nuxt apps on a single page. In large applications, different teams often work on different parts of the same app. Instead of each team working on the same Nuxt app, they can work on their own app, and Nuxt can automatically merge these apps together.

It's kind of like microservices, but for the frontend – micro frontends 🚀

@jeantil
Copy link

jeantil commented Mar 17, 2024

The blog post for 3.11 says 3.11 is the last before nuxt 4. for which a first release is expected 2024-Q1 according to the roadmap.

Does it mean Nuxt 3.x will never have multi application support ?
if 3.x never gets it, is multi-app support something of a goal for nuxt 4 ?

@danielroe
Copy link
Member Author

Features aim to land in minor releases. Breaking changes in major ones. Our feature roadmap + plans isn't really affected by our v4 plans; v4 is just an opportunity to make strategic (and gentle) breaking changes.

@nicolaspayot
Copy link
Contributor

@danielroe I'd like to give a try on the first task: namespace access to useNuxtApp('app-name')

@danielroe danielroe changed the title Multi-app support (TBA) Multi-app support Apr 22, 2024
@danielroe
Copy link
Member Author

@nicolaspayot Great! 🎉

@aekovalev
Copy link

aekovalev commented May 9, 2024

@danielroe Daniel, hello! Is there any information about the appearance of support for microfrontends in nuxt out of the box? When will this happen? after the release of nuxt v4? And will there be support for server-side microfrontends in ssr: true mode?

Copy link
Member Author

It's in active development. 😊

@odranoelBR
Copy link

odranoelBR commented May 9, 2024

N-Layers, Best nuxt feature =). Tks for the work!

@cheindl
Copy link

cheindl commented May 10, 2024

That ist really great news to hear! But i wonder which of the following scenarios will multi-app nuxt support?

  1. Multiple instances of different nuxt apps included within one page
  2. Multiple instances of the same nuxt app within one page (e.g. bundled as custom-element, with different initial app states)

Are both planned to be supported?

@nicolaspayot
Copy link
Contributor

In order to continue on this topic, I'd like to work on this issue #25336 (remove window.__NUXT__). @manniL happy to sync with you on this if needed.

@danielroe should we update the tasks list with it?

@fredimitchel
Copy link

I would raise a concern during usage of layers: how to manage versions of shared dependencies and not overcomplicating their management by duplicating versions on each packages (layers/consumers/shared)?
My dependabot suggests new version but breaks every time the project because version deduping versions are made by pnpm. Any solution for today or it's something we could see in future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants