bit-gpt / app

BitGPT it's your personal AI in your pocket
https://bitgpt.network
MIT License
454 stars 41 forks source link

Server: serve the app with a pre-render server #377

Open tiero opened 10 months ago

tiero commented 10 months ago

Vite offers a server-side rendered version https://github.com/vitejs/vite-plugin-react/tree/main

Example https://github.com/vitejs/vite-plugin-react/tree/main/playground/ssr-react

Other library: https://github.com/Lomray-Software/vite-ssr-boost

tiero commented 10 months ago

This will improve rendering times: a lot of time is a back and forth between the grid and the detail page, there is always a lot of networking going on, pre-rendering HTML in the server should help

Janaka-Steph commented 10 months ago

Ok but we use React Query that should cache requests data. Did you really notice slow renderings?

tiero commented 10 months ago

Here attached Lighthouse report, re: first load

download.pdf

First load recording https://www.loom.com/share/98435a4f6f67405a85bdb6e19f5e2087