<?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: Belle AI</title>
    <description>The latest articles on DEV Community by Belle AI (@_d56ee71434515ebe5ebd7f).</description>
    <link>https://dev.to/_d56ee71434515ebe5ebd7f</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%2F4169183%2F9de4bd1b-71fa-4778-a390-92478c5f771c.png</url>
      <title>DEV Community: Belle AI</title>
      <link>https://dev.to/_d56ee71434515ebe5ebd7f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_d56ee71434515ebe5ebd7f"/>
    <language>en</language>
    <item>
      <title>I Built an AI Color Analysis App in 9 Languages: Next.js SEO Lessons I Wish I Knew Earlier</title>
      <dc:creator>Belle AI</dc:creator>
      <pubDate>Fri, 16 Oct 2026 08:00:59 +0000</pubDate>
      <link>https://dev.to/_d56ee71434515ebe5ebd7f/i-built-an-ai-color-analysis-app-in-9-languages-nextjs-seo-lessons-i-wish-i-knew-earlier-3o9k</link>
      <guid>https://dev.to/_d56ee71434515ebe5ebd7f/i-built-an-ai-color-analysis-app-in-9-languages-nextjs-seo-lessons-i-wish-i-knew-earlier-3o9k</guid>
      <description>&lt;p&gt;Over the last few months I've been building &lt;strong&gt;Belle AI&lt;/strong&gt;, an app that takes a single selfie and tells you your seasonal color type (the 12-season system), your most flattering makeup shades, and your face shape.&lt;/p&gt;

&lt;p&gt;It ships as an &lt;strong&gt;iOS app&lt;/strong&gt; and a &lt;strong&gt;Next.js website&lt;/strong&gt;. The website turned out to be where I learned the most, mostly about multilingual SEO. This post covers what I built and the mistakes that cost me the most time.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Disclosure: I'm the developer of Belle AI. The links below point to my project.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;Personal color analysis is usually done by a human stylist who drapes colored fabrics under your face. It typically costs $150-400 and takes a couple of hours.&lt;/p&gt;

&lt;p&gt;Belle AI approximates that with a vision model pipeline:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You upload a selfie.&lt;/li&gt;
&lt;li&gt;The model estimates skin undertone, eye color, hair color and contrast level.&lt;/li&gt;
&lt;li&gt;It maps you to one of 12 seasons (Spring, Summer, Autumn, Winter, each with Light, Warm, Soft, Cool, Deep or Bright variants).&lt;/li&gt;
&lt;li&gt;It generates a report with a palette for clothing, makeup, hair and jewelry.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can try it here: &lt;a href="https://www.aicoloranalysis.io/try?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=building-ai-color-analysis" rel="noopener noreferrer"&gt;aicoloranalysis.io&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Web:&lt;/strong&gt; Next.js (App Router), React, Tailwind CSS, &lt;code&gt;next-intl&lt;/code&gt; for i18n&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auth and payments:&lt;/strong&gt; Auth.js, plus a merchant-of-record payment provider&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Python API that talks to generative AI models&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mobile:&lt;/strong&gt; native iOS app (&lt;a href="https://apps.apple.com/app/id6765602370" rel="noopener noreferrer"&gt;App Store&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Locales:&lt;/strong&gt; English, Chinese, Japanese, Korean, Spanish, French, German, Russian, Turkish&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Lesson 1: Next.js metadata is replaced, not merged
&lt;/h2&gt;

&lt;p&gt;This one bit me hard. In the App Router, if a page exports its own &lt;code&gt;openGraph&lt;/code&gt; or &lt;code&gt;twitter&lt;/code&gt; object, it &lt;strong&gt;replaces&lt;/strong&gt; the one from your layout. It does not merge with it.&lt;/p&gt;

&lt;p&gt;So any page that defined its own &lt;code&gt;openGraph&lt;/code&gt; without &lt;code&gt;images&lt;/code&gt; silently lost its share preview image. Pinterest and X showed blank cards.&lt;/p&gt;

&lt;p&gt;The fix is boring: export shared constants and include them explicitly everywhere.&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="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;OG_IMAGES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;SITE_URL&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/opengraph-image`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;630&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;];&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;TWITTER_IMAGES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;SITE_URL&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/opengraph-image`&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If a page has its own &lt;code&gt;opengraph-image&lt;/code&gt; file, skip the shared constant there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lesson 2: hreflang only works if it's reciprocal
&lt;/h2&gt;

&lt;p&gt;My first approach was to emit &lt;code&gt;hreflang&lt;/code&gt; alternates for every locale on every page. That was wrong.&lt;/p&gt;

&lt;p&gt;Not every blog post exists in every language, and some thin translations are &lt;code&gt;noindex&lt;/code&gt;. Pointing hreflang at a 404 or a &lt;code&gt;noindex&lt;/code&gt; page breaks the reciprocal rule, and Google can ignore the whole group.&lt;/p&gt;

&lt;p&gt;So I only list locales that actually exist and are indexable:&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="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;buildAlternatesForLocales&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="nx"&gt;locale&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nx"&gt;availableLocales&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;readonly&lt;/span&gt; &lt;span class="kr"&gt;string&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="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;languages&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{};&lt;/span&gt;
  &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;l&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;availableLocales&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;languages&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;l&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
      &lt;span class="nx"&gt;l&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nx"&gt;routing&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;defaultLocale&lt;/span&gt;
        &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;SITE_URL&lt;/span&gt;&lt;span class="p"&gt;}${&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;
        &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;SITE_URL&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;l&lt;/span&gt;&lt;span class="p"&gt;}${&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&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;availableLocales&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;routing&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;defaultLocale&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;languages&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;x-default&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;SITE_URL&lt;/span&gt;&lt;span class="p"&gt;}${&lt;/span&gt;&lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;canonical&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;canonicalUrl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;locale&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="nx"&gt;languages&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;h2&gt;
  
  
  Lesson 3: Pick one canonical host and enforce it
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;example.com&lt;/code&gt;, &lt;code&gt;www.example.com&lt;/code&gt;, and &lt;code&gt;example.com/en/&lt;/code&gt; can all serve the same page. I standardized on one host and made the default locale prefix-free. Everything else, including sitemaps, canonicals, hreflang and outbound links, uses that single form.&lt;/p&gt;

&lt;p&gt;It sounds trivial, but it removed a whole class of duplicate-content problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lesson 4: RSS auto-discovery is per page
&lt;/h2&gt;

&lt;p&gt;Another Next.js metadata gotcha is that &lt;code&gt;alternates&lt;/code&gt; on a page overrides the layout's &lt;code&gt;alternates&lt;/code&gt;. If you only declare the RSS link in the layout, most pages won't expose it in &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I moved RSS discovery into the same helper that builds canonicals and hreflang, so every page gets it automatically, and each language points to its own feed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lesson 5: Track attribution from day one
&lt;/h2&gt;

&lt;p&gt;Every outbound link I post gets UTM parameters (&lt;code&gt;utm_source&lt;/code&gt;, &lt;code&gt;utm_medium&lt;/code&gt;, &lt;code&gt;utm_campaign&lt;/code&gt;). Without this, you can't tell which channel brings signups or revenue. Adding it later means losing months of data.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;More tools: undertone test, face shape quiz, hair color preview&lt;/li&gt;
&lt;li&gt;Better handling of lighting differences in selfies (the hardest accuracy problem so far)&lt;/li&gt;
&lt;li&gt;More languages&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it and tell me what you think
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Website: &lt;a href="https://www.aicoloranalysis.io/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=building-ai-color-analysis" rel="noopener noreferrer"&gt;aicoloranalysis.io&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd love feedback from other devs, especially on:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;How you handle lighting variance in photo-based ML features&lt;/li&gt;
&lt;li&gt;Your multilingual SEO setup in Next.js&lt;/li&gt;
&lt;li&gt;Anything that looks broken on the site&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>nextjs</category>
      <category>webdev</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
