@pylonsync/functions 0.4.12 → 0.4.13

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/ssr-runtime.ts +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pylonsync/functions",
3
- "version": "0.4.12",
3
+ "version": "0.4.13",
4
4
  "description": "TypeScript function runtime for pylon — defines server-side queries, mutations, and actions.",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -2279,6 +2279,19 @@ async function tryRenderBoundary(
2279
2279
  boundaryMeta = mod.metadata;
2280
2280
  }
2281
2281
  }
2282
+ // The same file conventions a page gets, resolved against the BOUNDARY's
2283
+ // own directory: a colocated opengraph-image / icon next to not-found.tsx
2284
+ // is that boundary's, not the failing page's. Without these, one 404 URL
2285
+ // carried the social card and another didn't, depending only on whether
2286
+ // the route matched — the boundary was reached two ways and looked
2287
+ // different each way.
2288
+ boundaryMeta = applyAutoSocialImages(
2289
+ rel,
2290
+ compProps?.headers,
2291
+ boundaryMeta,
2292
+ compProps?.url,
2293
+ );
2294
+ boundaryMeta = applyAutoIcons(rel, boundaryMeta);
2282
2295
  const boundaryMetaFragment = renderMetadata(React, boundaryMeta);
2283
2296
  let tree = React.createElement(Comp, compProps);
2284
2297
  if (boundaryMetaFragment) {