Open mbekron opened 3 years ago
Hi! Since Gatsby uses React under the hood it should work. See React related docs & build integration accordingly.
ILC + React examples:
single-spa + React integration (ILC uses single-spa at client side): https://single-spa.js.org/docs/ecosystem-react
Also keep in mind that ILC is framework agnostic, so if your app implements required interface - it will work.
In theory I agree this should work, I am having some trouble with gatsby though due to the way it generates files. It seems to essentially do server side rending, but statically at "compile" time to output the generated screens. Not 100% sure how we'd go about loading the gatsby screens into ilc.
I would try to write a simple node.js proxy which implements ILC <-> app server side interface and "adapts" static files that were generated by Gatsby to ILC.
Honestly speaking we never tried to pair ILC with static website generator as we mostly target "classic" SSR apps with node.js server. If you're really interested in this - we can schedule a call to discuss possible approaches to integration.
Would it be possible to render a Gatsby app via ILC?