vatts 1.1.4-alpha.8 → 1.1.4-alpha.9

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.
@@ -8,7 +8,6 @@ const Image = ({ src, width, height, quality = 75, priority = false, className,
8
8
  return window.location.origin;
9
9
  }
10
10
  const baseUrl = getBaseUrl();
11
- console.log(baseUrl);
12
11
  // Se a imagem for Base64 (pequena) ou externa (http), não otimizamos via backend local
13
12
  const isOptimizable = src && src.startsWith && !src.startsWith('data:') && ((baseUrl && src.startsWith(baseUrl)) || !src.startsWith('http'));
14
13
  function optimizeSrc(src, baseUrl) {
package/dist/renderer.js CHANGED
@@ -282,6 +282,9 @@ async function renderAsStream({ req, res, route, params, allRoutes }) {
282
282
  if (r.generateMetadata) {
283
283
  routeMeta = await r.generateMetadata(params, req);
284
284
  }
285
+ if (!routeMeta.title) {
286
+ routeMeta.title = layoutInfo?.metadata.title || 'Vatts App';
287
+ }
285
288
  return {
286
289
  pattern: r.pattern,
287
290
  componentPath: r.componentPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vatts",
3
- "version": "1.1.4-alpha.8",
3
+ "version": "1.1.4-alpha.9",
4
4
  "description": "Vatts.js is a high-level framework for building web applications with ease and speed. It provides a robust set of tools and features to streamline development and enhance productivity.",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "itsmuzin",