fago
Render multiple component-previews as "islands" within a non-nuxt app
Multiapp does not really help me, since I'd have multiple nuxt instance of the same nuxt-build. So the app-ID would be all the same. Thus, I'd probably have to use iframes e.g. with srcDoc to isolate the multiple nuxt apps.
But given that, I figured having one nuxt-app per preview-components is probably not the best idea resource-wise anyway. It would probably get tot resource hungry when there are ~100+ components on a page.
Thus, I'm considering a new approach now: A single nuxt app that dynamically creates teleports for preview-Components.
9 replies