Closed K-Kit closed 2 years ago
@K-Kit is attempting to deploy a commit to the Plasmic Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
contenful-example | ✅ Ready (Inspect) | Visit Preview | Jun 11, 2022 at 11:24PM (UTC) |
plasmic | ✅ Ready (Inspect) | Visit Preview | Jun 11, 2022 at 11:24PM (UTC) |
plasmic-blog-example | ✅ Ready (Inspect) | Visit Preview | Jun 11, 2022 at 11:24PM (UTC) |
plasmic-blog-starter | ✅ Ready (Inspect) | Visit Preview | Jun 11, 2022 at 11:24PM (UTC) |
vercel-workflow | ✅ Ready (Inspect) | Visit Preview | Jun 11, 2022 at 11:24PM (UTC) |
I noticed when running SSR/SSG with the sanity the cache was getting loaded up with thousands of records. It seems like we're loading every record in the database just to get a unique array of docTypes.
Updated to just query for _type then return the filtered array before the value is cached.