mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-06 04:22:01 +00:00
Previously, this API would download the entire git repository for each request. Instead, we can defer downloading to the `/download` API only and change the list API to be statically generated at build time. This will improve the time to render the results from `vc init`. ## Before - `https://vercel-lu6z5kf4s.vercel.sh/api/examples/list` responds in 6200 ms - `https://vercel-lu6z5kf4s.vercel.sh/api/examples/list-all` responds in 800ms ## After - `https://vercel-ctsxcwzgc.vercel.sh/api/examples/list` responds in 60 ms - `https://vercel-ctsxcwzgc.vercel.sh/api/examples/list-all` responds in 60 ms