@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.
- package/package.json +1 -1
- package/src/ssr-runtime.ts +13 -0
package/package.json
CHANGED
package/src/ssr-runtime.ts
CHANGED
|
@@ -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) {
|