<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Hugo Campañoli</title>
    <description>The latest articles on Forem by Hugo Campañoli (@campadev).</description>
    <link>https://forem.com/campadev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3856393%2Fe4274eee-4db9-4d70-b2ee-e711457aedb5.png</url>
      <title>Forem: Hugo Campañoli</title>
      <link>https://forem.com/campadev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/campadev"/>
    <language>en</language>
    <item>
      <title>Why Astro 6's 0kb JS is the Ultimate Enterprise SEO Solution</title>
      <dc:creator>Hugo Campañoli</dc:creator>
      <pubDate>Thu, 09 Apr 2026 03:00:00 +0000</pubDate>
      <link>https://forem.com/campadev/why-astro-6s-0kb-js-is-the-ultimate-enterprise-seo-solution-1m2j</link>
      <guid>https://forem.com/campadev/why-astro-6s-0kb-js-is-the-ultimate-enterprise-seo-solution-1m2j</guid>
      <description>&lt;p&gt;Crawl Budget is the most scarce resource in enterprise SEO. Google defines it as "the number of URLs Googlebot can and wants to crawl" — and that number has an efficiency ceiling. &lt;/p&gt;

&lt;p&gt;Sites with 100k+ URLs that rely on JS-heavy frameworks (Next.js, Nuxt) often waste critical crawling capacity in the &lt;strong&gt;Web Rendering Service (WRS)&lt;/strong&gt;. This is Google's infrastructure that executes JavaScript, but it creates processing queues that can last days or even weeks.&lt;/p&gt;

&lt;p&gt;Astro 6 solves this by design: &lt;strong&gt;Pure static HTML, 0kb JS runtime by default, and an Island architecture&lt;/strong&gt; that protects rendering fidelity.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Cost of JavaScript Rendering
&lt;/h2&gt;

&lt;p&gt;Googlebot goes through two passes to index your content:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Crawl:&lt;/strong&gt; It downloads the HTML.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rendering:&lt;/strong&gt; It executes the JS in the WRS.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The second pass is an asynchronous queue. If your content is hidden behind JS, Googlebot won't "see" it until its turn comes up in the queue. This creates &lt;strong&gt;"Zombie Pages"&lt;/strong&gt;: URLs that are discovered but have incomplete content in the index.&lt;/p&gt;

&lt;h3&gt;
  
  
  The 5 Infrastructure Gates
&lt;/h3&gt;

&lt;p&gt;Jason Barnard describes the pipeline as 5 sequential gates:&lt;br&gt;
&lt;strong&gt;Discovery&lt;/strong&gt; → &lt;strong&gt;Selection&lt;/strong&gt; → &lt;strong&gt;Crawling&lt;/strong&gt; → &lt;strong&gt;Rendering&lt;/strong&gt; → &lt;strong&gt;Indexing&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;With Astro 6, the rendering gate is practically bypassed. The content is already in the HTML that Googlebot downloads during the Crawling phase. &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Legacy (SSR/CSR)&lt;/th&gt;
&lt;th&gt;Astro 6 (SSG/Islands)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;JS Runtime&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;150-400kb (typical)&lt;/td&gt;
&lt;td&gt;0kb (default)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Infra Gates&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;5 Gates (Discovery to Index)&lt;/td&gt;
&lt;td&gt;4 Gates (Skips Rendering)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Render Fidelity&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Variable (Depends on WRS)&lt;/td&gt;
&lt;td&gt;100% (HTML is the truth)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;AI Bot Visibility&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Partial&lt;/td&gt;
&lt;td&gt;Complete&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  The AI Factor: Bots don't execute JS
&lt;/h2&gt;

&lt;p&gt;There is an angle most people ignore: &lt;strong&gt;AI bots don't execute JavaScript.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most search engines (Google, Bing) have rendering capabilities. But Perplexity, smaller AI agents, and training crawlers mostly work with the initial HTML. If your content depends on client-side rendering, to these bots, &lt;strong&gt;your content doesn't exist.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Use Cases: Astro 6 vs Next.js
&lt;/h2&gt;

&lt;p&gt;It's not about which framework is "better," but which is right for the job.&lt;/p&gt;

&lt;h3&gt;
  
  
  ✅ Use Astro 6 for (Content is King):
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;E-commerce with large catalogs (100k+ products).&lt;/li&gt;
&lt;li&gt;Directories and Marketplaces with static content.&lt;/li&gt;
&lt;li&gt;Technical documentation portals.&lt;/li&gt;
&lt;li&gt;Enterprise landing pages at scale.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ❌ Use Next.js for (Logic is King):
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Real-time data dashboards.&lt;/li&gt;
&lt;li&gt;Apps with complex route-based authentication.&lt;/li&gt;
&lt;li&gt;Collaborative tools (editors, whiteboards).&lt;/li&gt;
&lt;li&gt;SaaS platforms with heavy client-side business logic.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Conclusion: Ockham's Razor for SEO
&lt;/h2&gt;

&lt;p&gt;The simplest solution is usually the right one. If Googlebot isn't indexing all your URLs, the answer isn't more servers or more complex SSR. &lt;strong&gt;The answer is less JavaScript.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In 2026, with AI bots becoming a major source of digital visibility, static HTML is no longer just a performance optimization — it's a multi-bot visibility strategy.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://campa.dev/es/blog/0kb-js-astro-6-seo-enterprise/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=0kb-js-astro-6-seo-enterprise" rel="noopener noreferrer"&gt;campa.dev&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>astro</category>
      <category>seo</category>
      <category>performance</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Zod 4 - From Validation to Data Pipelines</title>
      <dc:creator>Hugo Campañoli</dc:creator>
      <pubDate>Wed, 08 Apr 2026 14:42:33 +0000</pubDate>
      <link>https://forem.com/campadev/zod-4-from-validation-to-data-pipelines-3ol9</link>
      <guid>https://forem.com/campadev/zod-4-from-validation-to-data-pipelines-3ol9</guid>
      <description>&lt;p&gt;Validating that a field exists is the floor, not the ceiling. Your CMS or API data is often "dirty": dates as strings, empty tags, non-normalized slugs. If you clean this up in your components, you're duplicating logic that &lt;strong&gt;Zod 4&lt;/strong&gt; can solve in a single schema.&lt;/p&gt;

&lt;p&gt;In this guide, we'll see how to transform your validation into a &lt;strong&gt;pure data pipeline&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  From Validator to Transformation Pipeline
&lt;/h3&gt;

&lt;p&gt;Look at the difference between a schema that only validates and one that transforms, normalizes, and performs cross-field validation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Advanced Schema — Validate + Transform + Normalize&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;blogSchema&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;z&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;object&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;z&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;string&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
  &lt;span class="na"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;z&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;string&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toLowerCase&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="se"&gt;\s&lt;/span&gt;&lt;span class="sr"&gt;+/g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;-&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)),&lt;/span&gt;
  &lt;span class="na"&gt;publishedAt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;z&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;string&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)),&lt;/span&gt;
  &lt;span class="na"&gt;tags&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;z&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;z&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;string&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;arr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;arr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;)),&lt;/span&gt;
&lt;span class="p"&gt;}).&lt;/span&gt;&lt;span class="nf"&gt;superRefine&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;publishedAt&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addIssue&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
      &lt;span class="na"&gt;code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;custom&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Date cannot be in the future&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;publishedAt&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  The Three Patterns You Need to Know
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;1. &lt;code&gt;.transform()&lt;/code&gt; — Modify data after validation&lt;/strong&gt;&lt;br&gt;
Change the output type directly in the schema.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. &lt;code&gt;.superRefine()&lt;/code&gt; — Cross-field validation&lt;/strong&gt;&lt;br&gt;
Perfect for complex rules like "Published articles require a date, but drafts don't".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. &lt;code&gt;.prefault()&lt;/code&gt; — The new Zod 4 pre-parse default&lt;/strong&gt;&lt;br&gt;
In Zod 4, &lt;code&gt;.default()&lt;/code&gt; applies &lt;strong&gt;after&lt;/strong&gt; the transform. Use &lt;code&gt;.prefault()&lt;/code&gt; if you need the default value to pass through your transformation pipeline (Zod 3 behavior).&lt;/p&gt;




&lt;h3&gt;
  
  
  Where should the logic go?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;In the Schema (Zod):&lt;/strong&gt; Single source of truth, automatic output typing, zero boilerplate in UI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In Components:&lt;/strong&gt; Dispersed logic, harder to test, and redundant.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Validating is easy. Transforming with elegance is the art of a Senior Engineer.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Originally published at:&lt;/strong&gt; &lt;a href="https://campa.dev/es/til/zod-4-esquemas-dinamicos/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=zod-4-esquemas-dinamicos" rel="noopener noreferrer"&gt;campa.dev&lt;/a&gt;&lt;/p&gt;

</description>
      <category>zod</category>
      <category>typescript</category>
      <category>astro</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
