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

SSR #58

Open
gius opened this issue Dec 18, 2021 · 2 comments
Open

SSR #58

gius opened this issue Dec 18, 2021 · 2 comments

Comments

@gius
Copy link
Contributor

gius commented Dec 18, 2021

Investigate server-side rendering possibilities for Frui.ts applications.

https://github.com/brillout/vite-plugin-ssr
https://github.com/frandiox/vite-ssr#readme

@brancooo1
Copy link

brancooo1 commented Jan 4, 2022

I've tried react-snap and prerender-spa-plugin, both based on puppeteer.

The latter seemed quite handy (webpack-only configurable) and did run locally quite well. Unfortunately I didn't make it to production because of time press, also running it in docker in production pipeline can be a bit of challenge..

@gius
Copy link
Contributor Author

gius commented Feb 19, 2023

As Frui.ts v1 no longer uses its own router, implementing SSR should be much easier now. However, it will be more framework (Next/Remix) specific, because of the router actually used.
Implementing a useViewModel hook that will just handle a viewModel lifecycle should help here.

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