Giveth / giveth-dapps-v2

This project is the aggregation of GIVeconomy and Giveth.io DApps in a single repo
https://staging.giveth.io
GNU General Public License v3.0
61 stars 34 forks source link

Convert SSR pages to SSG pages #2055

Open MohammadPCh opened 1 year ago

MohammadPCh commented 1 year ago

The rate of adding projects and changing our pages is very low. Therefore, instead of rebuilding those pages with every request, it is good to build them once and update them over a period of time. I'm working on converting the homepage, projects page, and project page to decrease the server response time and number of our requests to the backend.

MohammadPCh commented 1 year ago

this is a preview with 10mins TTL, please take a look and let me know your feedback. JFYI it's not a finalized version! we need to test many edge cases like editing projects, adding a project, like and like projects, logged-in users and etc. also, we can have some more optimizations :) https://givstatic.vercel.app/ @aminlatifi @MoeNick

aminlatifi commented 1 year ago

@MohammadPCh That's blazing fast, you are a hero Cherik

MoeNick commented 1 year ago

how can I help on this? @MohammadPCh do we need adding list of use-cases?

MohammadPCh commented 1 year ago

@aminlatifi Thanks, @MoeNick yes, please. we need to talk about TTL for each page and decide on CSR and SSG parts.

MoeNick commented 11 months ago

Moving it back to icebox to the low priority.

divine-comedian commented 2 weeks ago

@jainkrati do you think this is a worthwhile and relevant optimisation?