cd /news/developer-tools/how-i-built-an-seo-optimized-portfol… · home topics developer-tools article
[ARTICLE · art-112422] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

How I Built an SEO-Optimized Portfolio with Next.js 16

Developer Syed Muhammad Hasnain Abdi detailed how he built an SEO-optimized portfolio using Next.js 16, leveraging static site generation, JSON-LD structured data, and dynamic Open Graph images to rank for keywords like 'Full Stack Developer Pakistan'. The site achieves sub-700ms load times and has begun ranking on Google within weeks of deployment.

read2 min views1 publishedAug 26, 2026

A practical walkthrough of how I built this very portfolio — covering Static Site Generation, JSON-LD structured data, Open Graph images, and a 68-keyword SEO strategy that ranks for "

[Full Stack Developer Pakistan]". When I started building my portfolio, I had one clear goal: it had to rank on Google for keywords like "Syed Muhammad Hasnain Abdi portfolio" and "Full Stack Developer Pakistan". That meant SEO was a first-class concern, not an afterthought.

I used Next.js 16 App Router with SSG for every route — including dynamic project case study pages via generateStaticParams. Every page is pre-rendered to static HTML at build time, which means instant TTFB and perfect Lighthouse scores. The home page loads in under 700 ms with all animations and images. You can see this in action on my projects page where every case study is statically generated.

I implemented four JSON-LD schemas across the site: Person (identity, occupation, alumni, skills), WebSite (search action), ProfessionalService (services, area served), and a CollectionPage listing all projects as CreativeWork items. Each project case study page also gets a BreadcrumbList and a CreativeWork+SoftwareApplication schema with author, dateCreated, and keywords.

Next.js 16's ImageResponse API generates dynamic 1200×630 Open Graph images and 1200×600 Twitter images on the fly. When someone shares a link on social media, they see my name, title, and branding — not a broken preview.

I researched and grouped keywords into brand (Syed Muhammad Hasnain Abdi portfolio), role (Full Stack Developer Pakistan, AI Developer Karachi), AI-specific (OpenAI Developer, RAG Developer), location (Karachi Web Developer), and hiring intent (Hire Full Stack Developer, Freelance Developer Pakistan). All 68 are placed naturally in the title tag, meta description, headings, body content, and JSON-LD structured data. The same approach applies to the services and experience pages.

After deploying and submitting the sitemap to Google Search Console, the site started ranking within weeks. The key lesson: SEO is not a single change — it is the cumulative effect of SSG, structured data, fast page loads, semantic HTML, and keyword-rich natural content. If you want a deeper dive on Progressive Web Apps, read my PWA guide for full-stack developers.

── more in #developer-tools 4 stories · sorted by recency
── more on @syed muhammad hasnain abdi 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-i-built-an-seo-o…] indexed:0 read:2min 2026-08-26 ·