My name is a common one. When I search it, results are mixed, and my own portfolio is not guaranteed to show up. So I spent some time making my portfolio easier for Google to understand.
I can't promise this will rank me first, because Google decides that. But these changes give search engines clear signals about who I am. Here is what I did on a React portfolio hosted on Vercel.
1. Each page needs its own canonical tag
My first problem was in Search Console. One page showed "Alternate page with proper canonical tag" and was not indexed.
URL Inspection showed the canonical was my home page ( / ), not the page itself. A single hard-coded <link rel="canonical"> in index.html was shared by every route, so Google treated my other pages as duplicates of the home page.
The fix: set the canonical per route.
import { useEffect } from " react " ;
const SITE = " https://your-domain.com " ;
export function useCanonical ( path : string ) { useEffect (() => { let link = document .…