outloudvi / info-pride

Informational website for Project IDOLY PRIDE fans.
https://ip.outv.im
GNU Affero General Public License v3.0
21 stars 8 forks source link

Reduce Vercel Function invocation #123

Open outloudvi opened 4 months ago

outloudvi commented 4 months ago

Current use of function invocation during the past half months - 70k for frontend and 120k for assets

outloudvi commented 4 months ago

Vercel somehow seems to start counting function invocations into Hobby project usage. This lead to a issue on our Server Components migration (including #60) as well as our on-demand asset backend (idoly-assets-curator). We need to (and might be able to) have some optimizations on caching like https://github.com/outloudvi/idoly-assets-curator/commit/0a5ccf13e564b34dcf677c09b93adcdede124d14 for asset-backend.

(A ultimate workaround would be falling back to remove use of server components anyway)