<?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: MEHTAB RIAZ</title>
    <description>The latest articles on Forem by MEHTAB RIAZ (@mehtab_riaz_bdb7e6c61115f).</description>
    <link>https://forem.com/mehtab_riaz_bdb7e6c61115f</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%2F3577695%2F790df069-7a23-4a5d-bd2f-261487389b63.webp</url>
      <title>Forem: MEHTAB RIAZ</title>
      <link>https://forem.com/mehtab_riaz_bdb7e6c61115f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mehtab_riaz_bdb7e6c61115f"/>
    <language>en</language>
    <item>
      <title>I shipped my developer portfolio on GitHub Pages with Next.js static export</title>
      <dc:creator>MEHTAB RIAZ</dc:creator>
      <pubDate>Sun, 19 Apr 2026 19:17:55 +0000</pubDate>
      <link>https://forem.com/mehtab_riaz_bdb7e6c61115f/i-shipped-my-developer-portfolio-on-github-pages-with-nextjs-static-export-1e74</link>
      <guid>https://forem.com/mehtab_riaz_bdb7e6c61115f/i-shipped-my-developer-portfolio-on-github-pages-with-nextjs-static-export-1e74</guid>
      <description>&lt;p&gt;I recently polished and open-sourced my personal portfolio: a &lt;strong&gt;Next.js&lt;/strong&gt; site with &lt;strong&gt;JSON-driven content&lt;/strong&gt;, &lt;strong&gt;static export&lt;/strong&gt;, and &lt;strong&gt;GitHub Actions&lt;/strong&gt; deploying to &lt;strong&gt;GitHub Pages&lt;/strong&gt;—no server, no API routes at runtime.&lt;/p&gt;

&lt;p&gt;If you’re comparing stacks for a portfolio or fighting &lt;strong&gt;subpath deploys&lt;/strong&gt; (&lt;code&gt;username.github.io/repo/&lt;/code&gt;), this might save you a few rabbit holes.&lt;/p&gt;




&lt;h2&gt;
  
  
  Live site &amp;amp; repo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live:&lt;/strong&gt; &lt;a href="https://mehtabriaz.github.io/portfolio/" rel="noopener noreferrer"&gt;mehtabriaz.github.io/portfolio&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Source:&lt;/strong&gt; &lt;a href="https://github.com/MehtabRiaz/portfolio" rel="noopener noreferrer"&gt;github.com/MehtabRiaz/portfolio&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




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

&lt;p&gt;A single-page style &lt;strong&gt;home&lt;/strong&gt; with hero, featured work, about, technical stack, and experience, plus extra routes for &lt;strong&gt;projects&lt;/strong&gt; (GitHub API at build time) and &lt;strong&gt;articles&lt;/strong&gt; (Medium RSS via rss2json, also at build time). Most copy and structure live under &lt;code&gt;content/&lt;/code&gt; as JSON, so updates don’t always mean digging through JSX.&lt;/p&gt;

&lt;p&gt;Stack in practice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Next.js&lt;/strong&gt; (Pages Router), &lt;strong&gt;React&lt;/strong&gt;, &lt;strong&gt;Sass&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Font Awesome free&lt;/strong&gt; icons (with a small util to map old Pro-style prefixes to free solid)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Framer Motion&lt;/strong&gt; for motion where it helps&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Jest&lt;/strong&gt; + Testing Library for a few unit tests&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Why static export + GitHub Pages
&lt;/h2&gt;

&lt;p&gt;I wanted:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Free hosting&lt;/strong&gt; tied to the repo
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Predictable URLs&lt;/strong&gt; for a project site under a subpath
&lt;/li&gt;
&lt;li&gt;No need to run Node in production—just &lt;strong&gt;static files&lt;/strong&gt; after &lt;code&gt;next build&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;next.config.js&lt;/code&gt; uses &lt;strong&gt;&lt;code&gt;output: 'export'&lt;/code&gt;&lt;/strong&gt; so the app becomes plain HTML/JS/CSS in &lt;code&gt;out/&lt;/code&gt;. GitHub Pages serves that output from the workflow in &lt;code&gt;.github/workflows/deploy-github-pages.yml&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The annoying part of &lt;strong&gt;project pages&lt;/strong&gt; is the &lt;strong&gt;&lt;code&gt;/portfolio/&lt;/code&gt;&lt;/strong&gt; base path: assets, favicons, manifests, and client-side &lt;code&gt;public&lt;/code&gt; URLs must stay consistent. The repo uses &lt;strong&gt;&lt;code&gt;basePath&lt;/code&gt; / &lt;code&gt;assetPrefix&lt;/code&gt;&lt;/strong&gt; derived from the GitHub repo name in CI, plus a small &lt;strong&gt;&lt;code&gt;publicPath()&lt;/code&gt;&lt;/strong&gt; helper so links to &lt;code&gt;public/&lt;/code&gt; files work both locally (&lt;code&gt;/&lt;/code&gt;) and on Pages (&lt;code&gt;/portfolio/&lt;/code&gt;).&lt;/p&gt;




&lt;h2&gt;
  
  
  Content model (quick mental model)
&lt;/h2&gt;

&lt;p&gt;Rough map (details in the README):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;Where it lives&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Settings / GitHub username for APIs&lt;/td&gt;
&lt;td&gt;&lt;code&gt;content/_settings.json&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hero &amp;amp; page colors&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;content/index/hero.json&lt;/code&gt;, &lt;code&gt;content/index/_colors.json&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Featured projects&lt;/td&gt;
&lt;td&gt;&lt;code&gt;content/projects/featured.json&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Technical section&lt;/td&gt;
&lt;td&gt;&lt;code&gt;content/index/technical.json&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Experience&lt;/td&gt;
&lt;td&gt;&lt;code&gt;content/index/experience.json&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Footer&lt;/td&gt;
&lt;td&gt;&lt;code&gt;content/footer.json&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That split kept the site &lt;strong&gt;maintainable&lt;/strong&gt; as I iterated on copy and featured work.&lt;/p&gt;




&lt;h2&gt;
  
  
  Things I’d tell my past self
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Static export&lt;/strong&gt; means no &lt;code&gt;pages/api&lt;/code&gt; in the classic sense—anything dynamic either runs at &lt;strong&gt;build time&lt;/strong&gt; (&lt;code&gt;getStaticProps&lt;/code&gt; + &lt;code&gt;fetch&lt;/code&gt;) or moves to an external service.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;images.unoptimized&lt;/code&gt;&lt;/strong&gt; is the usual tradeoff for static hosting without an image CDN.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Subpath deploys&lt;/strong&gt; are solvable but tedious: manifest icons, document head, and any hardcoded &lt;code&gt;/foo&lt;/code&gt; paths will bite you until everything goes through your path helper or Next’s &lt;code&gt;basePath&lt;/code&gt;.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Favicons:&lt;/strong&gt; SVG favicons are great, but &lt;strong&gt;external images inside SVG favicons&lt;/strong&gt; are unreliable in Chromium; inlining the bitmap (e.g. data URI) fixed “blank tab icon” for me.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Try it locally
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
bash
git clone https://github.com/MehtabRiaz/portfolio.git
cd portfolio
npm install
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>github</category>
      <category>nextjs</category>
      <category>react</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Hello DEV — I'm Mehtab Riaz, and I'm excited to join this community</title>
      <dc:creator>MEHTAB RIAZ</dc:creator>
      <pubDate>Sat, 18 Apr 2026 12:53:26 +0000</pubDate>
      <link>https://forem.com/mehtab_riaz_bdb7e6c61115f/hello-dev-im-mehtab-riaz-and-im-excited-to-join-this-community-oe9</link>
      <guid>https://forem.com/mehtab_riaz_bdb7e6c61115f/hello-dev-im-mehtab-riaz-and-im-excited-to-join-this-community-oe9</guid>
      <description>&lt;p&gt;I'm a software developer who cares about clear, reliable, and useful products. Day to day, I work across the stack with a strong focus on maintainable code, solid interfaces, and performance—the kind of details that keep software pleasant to ship and to live with after launch.&lt;/p&gt;

&lt;p&gt;Lately, a lot of my work lives in the JavaScript / TypeScript ecosystem (React, Next.js, modern tooling). I like turning messy problems into something shippable: from sketching an approach, to implementation, to tightening the rough edges before release.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Full-stack / product-style development — features end to end, not just isolated components
&lt;/li&gt;
&lt;li&gt;Frontend engineering — React, responsive UI, and performance-minded builds
&lt;/li&gt;
&lt;li&gt;APIs and backend integration — pragmatic design, sensible error handling, security basics done right
&lt;/li&gt;
&lt;li&gt;Quality and iteration — refactoring when it pays off, profiling when something feels slow, tests where they earn their keep
&lt;/li&gt;
&lt;li&gt;Learning in public — writing short notes, documenting what I build, and sharing what I learn along the way&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I'm building now
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Right now, I'm especially focused on:&lt;/li&gt;
&lt;li&gt;Shipping production-ready web experiences (fast, accessible, maintainable)
&lt;/li&gt;
&lt;li&gt;Next.js and React patterns that scale with the codebase—not just the first demo
&lt;/li&gt;
&lt;li&gt;Sharpening system design and architecture intuition through real projects
&lt;/li&gt;
&lt;li&gt;Open source and portfolio work that doubles as a playground for b
etter engineering habits&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why I'm here on DEV
&lt;/h2&gt;

&lt;p&gt;I joined DEV to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Share what I'm building and how I think about tradeoffs
&lt;/li&gt;
&lt;li&gt;Document setups, bugs, and wins so my future self (and others) can reuse them
&lt;/li&gt;
&lt;li&gt;Learn from people who've already solved the problems I'm hitting
&lt;/li&gt;
&lt;li&gt;C
onnect with other developers who care about craft, not just hype&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Let's connect
&lt;/h2&gt;

&lt;p&gt;I'm always open to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Collaboration on web projects and small open-source ideas
&lt;/li&gt;
&lt;li&gt;Technical discussions — frontend, backend, DX, and everything in between
&lt;/li&gt;
&lt;li&gt;Feedback on my posts and projects—constructive critique is welcome&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to follow along, you can find me here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: [edit — add your profile URL, e.g. &lt;a href="https://github.com/mehtab-riaz" rel="noopener noreferrer"&gt;https://github.com/mehtab-riaz&lt;/a&gt;]
&lt;/li&gt;
&lt;li&gt;Portfolio / site: [wip]
&lt;/li&gt;
&lt;li&gt;LinkedIn: [&lt;a href="https://linkedin.com/in/mehtab-riaz/" rel="noopener noreferrer"&gt;https://linkedin.com/in/mehtab-riaz/&lt;/a&gt;]
I believe in building, sharing, and improving a little every week. Thanks for reading—I'm glad to be here, and I hope we can learn from each other.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>welcome</category>
      <category>intro</category>
      <category>webdev</category>
      <category>community</category>
    </item>
  </channel>
</rss>
