<?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>DEV Community: Yoon Hun Kang</title>
    <description>The latest articles on DEV Community by Yoon Hun Kang (@yoon_hunkang_2404b136406).</description>
    <link>https://dev.to/yoon_hunkang_2404b136406</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4038814%2F0c28ba96-7faa-42a4-9955-4768ff030716.png</url>
      <title>DEV Community: Yoon Hun Kang</title>
      <link>https://dev.to/yoon_hunkang_2404b136406</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yoon_hunkang_2404b136406"/>
    <language>en</language>
    <item>
      <title>I spent 2 days debugging why Google wouldn't index my new SaaS — the bug was in my own canonical tags</title>
      <dc:creator>Yoon Hun Kang</dc:creator>
      <pubDate>Mon, 20 Jul 2026 20:42:34 +0000</pubDate>
      <link>https://dev.to/yoon_hunkang_2404b136406/i-spent-2-days-debugging-why-google-wouldnt-index-my-new-saas-the-bug-was-in-my-own-canonical-161h</link>
      <guid>https://dev.to/yoon_hunkang_2404b136406/i-spent-2-days-debugging-why-google-wouldnt-index-my-new-saas-the-bug-was-in-my-own-canonical-161h</guid>
      <description>&lt;p&gt;Launched a new site two days ago and Google Search Console showed &lt;br&gt;
zero indexing. Spent longer than I'd like to admit assuming it was &lt;br&gt;
just "new domain, be patient" — until I actually checked the live HTML.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug
&lt;/h2&gt;

&lt;p&gt;My server correctly redirects &lt;code&gt;uxtion.ai&lt;/code&gt; → &lt;code&gt;www.uxtion.ai&lt;/code&gt; (301/308). &lt;br&gt;
Standard setup. But every canonical tag on the page — and the JSON-LD &lt;br&gt;
schema, and the sitemap — still pointed back to the non-www version.&lt;/p&gt;

&lt;p&gt;So Google was getting two contradicting signals on the same page:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"The real URL is www" (from the redirect)&lt;/li&gt;
&lt;li&gt;"No wait, the real URL is non-www" (from the canonical tag)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Classic case of shipping the redirect and forgetting the metadata &lt;br&gt;
has to agree with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix
&lt;/h2&gt;

&lt;p&gt;Pulled every hardcoded domain reference into a single shared constant &lt;br&gt;
tied to the actual production env var, instead of a string typed out &lt;br&gt;
in six different files. Once that shipped and the sitemap re-read &lt;br&gt;
correctly, the homepage went from "not indexed" to "URL is on Google" &lt;br&gt;
within a few days.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I'm writing this
&lt;/h2&gt;

&lt;p&gt;I'm building &lt;a href="https://uxtion.ai" rel="noopener noreferrer"&gt;UXtion&lt;/a&gt; — a tool that audits Lovable &lt;br&gt;
and Cursor-built sites and hands back paste-ready fixes instead of &lt;br&gt;
another report to interpret. Ironically, this bug was in my own &lt;br&gt;
marketing site, not a customer's. Turns out "diagnose the problem vs. &lt;br&gt;
actually fix it" applies to your own infrastructure too.&lt;/p&gt;

&lt;p&gt;If you're running a Next.js App Router site with a www/apex split, &lt;br&gt;
worth checking &lt;code&gt;alternates.canonical&lt;/code&gt; and any JSON-LD &lt;code&gt;@id&lt;/code&gt;/&lt;code&gt;url&lt;/code&gt; &lt;br&gt;
fields aren't hardcoded to the wrong domain — &lt;code&gt;tsc&lt;/code&gt; and your test &lt;br&gt;
suite won't catch this, only a live view-source will.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>nextjs</category>
      <category>webdev</category>
      <category>saas</category>
    </item>
  </channel>
</rss>
