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

Gatsby #243

Open
mbekron opened this issue Jan 11, 2021 · 3 comments
Open

Gatsby #243

mbekron opened this issue Jan 11, 2021 · 3 comments

Comments

@mbekron
Copy link

mbekron commented Jan 11, 2021

Would it be possible to render a Gatsby app via ILC?

@StyleT
Copy link
Contributor

StyleT commented Jan 11, 2021

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.

@mbekron
Copy link
Author

mbekron commented Jan 12, 2021

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.

@StyleT
Copy link
Contributor

StyleT commented Jan 12, 2021

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.

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

No branches or pull requests

2 participants