@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

main
patch 16 lines 685 Bytes
Raw
1 diff --git a/dist/utils/routing/index.js b/dist/utils/routing/index.js
2 --- a/dist/utils/routing/index.js
3 +++ b/dist/utils/routing/index.js
4 @@ -72,7 +72,11 @@
5 return routesBySlugParam.get(slugParam?.replace(/\/$/, "") || void 0);
6 }
7 function getPaths() {
8 - return routes.map((route) => ({ params: { slug: slugToParam(route.id) } }));
9 + const blogCacheKey = routes.filter((route) => route.id.startsWith("blog/")).map((route) => route.entry.digest).join(":");
10 + return routes.map((route) => ({
11 + params: { slug: slugToParam(route.id) },
12 + cacheKey: route.id.startsWith("blog/") ? `${route.entry.digest}:${blogCacheKey}` : route.entry.digest
13 + }));
14 }
15 const paths = getPaths();
16 /**