@pylonsync/create-pylon 0.3.308 → 0.3.309

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pylonsync/create-pylon",
3
- "version": "0.3.308",
3
+ "version": "0.3.309",
4
4
  "description": "Scaffold a new Pylon app — realtime backend + web/mobile/expo frontends in one command. Run via `npm create @pylonsync/pylon@latest`.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -53,6 +53,11 @@ export const generateMetadata: GenerateMetadata = async ({
53
53
  };
54
54
  };
55
55
 
56
+ // Public case study, no auth read → an ISR candidate. `revalidate` serves it
57
+ // from cache with stale-while-revalidate and makes <Link>'s prefetch reusable,
58
+ // so a click off the work grid hits cache instead of a live render.
59
+ export const revalidate = 300;
60
+
56
61
  const WRAP_NARROW = "mx-auto w-full max-w-3xl px-6";
57
62
 
58
63
  function CaseStudy({
@@ -31,6 +31,14 @@ async function resolveListing(
31
31
  );
32
32
  }
33
33
 
34
+ // The listing page is anonymous + public (the watch button + offer panel are
35
+ // client islands with their own auth), so its SSR output is shared across
36
+ // visitors — an ISR candidate. `revalidate` serves it from cache, emits
37
+ // stale-while-revalidate, and makes <Link>'s prefetch reusable so a click hits
38
+ // cache instead of a live render. Short TTL because a listing's sold status is
39
+ // time-sensitive; the realtime offer panel keeps the live bits fresh regardless.
40
+ export const revalidate = 60;
41
+
34
42
  // Data-driven SEO: the title + description come from the listing itself,
35
43
  // fetched on the server. `generateMetadata` is handed the same PageProps as
36
44
  // the page (params + serverData), so it reads the row directly.