<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Udit Saurabh on Medium]]></title>
        <description><![CDATA[Stories by Udit Saurabh on Medium]]></description>
        <link>https://medium.com/@udit?source=rss-e932fb1f4ca2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qDv6AZaDbH35-r1ak7qBqw.jpeg</url>
            <title>Stories by Udit Saurabh on Medium</title>
            <link>https://medium.com/@udit?source=rss-e932fb1f4ca2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 06:14:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@udit/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Example of discounted cash flow]]></title>
            <link>https://medium.com/@udit/example-of-discounted-cash-flow-ca2b0b241dc0?source=rss-e932fb1f4ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca2b0b241dc0</guid>
            <category><![CDATA[investment-banking]]></category>
            <dc:creator><![CDATA[Udit Saurabh]]></dc:creator>
            <pubDate>Tue, 26 May 2026 08:53:59 GMT</pubDate>
            <atom:updated>2026-05-26T08:53:59.399Z</atom:updated>
            <content:encoded><![CDATA[<p>A business having <strong>₹2,000 cash flow</strong> does <strong>not automatically tell us its value</strong>.</p><p>The value depends on:</p><ol><li>How long the cash flow will continue</li><li>Whether cash flow will grow</li><li>The risk of the business</li><li>The discount rate</li></ol><h3>Example 1: Cash Flow for Only 1 Year</h3><p>Suppose the business generates:</p><ul><li>₹2,000 this year</li><li>₹0 afterward</li></ul><p>Then the business is worth approximately ₹2,000 (or slightly less after discounting).</p><h3>Example 2: Cash Flow Forever</h3><p>Suppose the business generates:</p><ul><li>₹2,000 every year forever</li></ul><p>And investors require a 10% return.</p><p>Using the perpetuity formula:</p><p>Vaue = \frac{Cash\ Flow}{Discount\ Rate}</p><p>Value = ₹2,000 ÷ 0.10</p><p>= ₹20,000</p><p>So a business producing ₹2,000 every year forever could be worth about <strong>₹20,000</strong>.</p><h3>Example 3: Growing Cash Flow</h3><p>Suppose cash flow grows 5% every year.</p><p>Then we use the Gordon Growth Model:</p><p>Value = \frac{FCF}{r-g}</p><p>Where:</p><ul><li>FCF = ₹2,000</li><li>r = 10%</li><li>g = 5%</li></ul><p>Value = ₹2,000 ÷ (0.10 − 0.05)</p><p>= ₹40,000</p><p>Now the same ₹2,000 cash flow business is worth <strong>₹40,000</strong> because it is growing.</p><h3>Real-World Analogy</h3><p>Imagine two tea stalls.</p><h3>Tea Stall A</h3><p>Generates ₹2,000/year and will likely close next year.</p><p>Value ≈ ₹2,000</p><h3>Tea Stall B</h3><p>Generates ₹2,000/year and is expected to operate for decades.</p><p>Value ≈ ₹20,000+</p><h3>Tea Stall C</h3><p>Generates ₹2,000/year and grows 5% annually.</p><p>Value ≈ ₹40,000+</p><p>Same current cash flow.</p><p>Different values.</p><h3>Why Investors Pay More Than Current Cash Flow</h3><p>When someone buys a business, they are not buying today’s cash flow.</p><p>They are buying:</p><blockquote><em>All future cash flows the business will generate.</em></blockquote><p>That’s why a company earning ₹1 crore per year may be worth:</p><ul><li>₹5 crore</li><li>₹10 crore</li><li>₹20 crore</li></ul><p>depending on growth and risk.</p><h3>A Quick Rule of Thumb</h3><p>For many small stable businesses:</p><p>Annual Cash FlowApproximate Value₹2,000₹10,000–₹20,000₹20,000₹1–2 lakh₹2 lakh₹10–20 lakh₹20 lakh₹1–2 crore</p><p>This corresponds roughly to <strong>5×–10× annual cash flow</strong>, though actual valuations vary widely.</p><p>The key lesson is:</p><blockquote><strong><em>Cash flow is the engine. Value is the present worth of all the future cash that engine is expected to produce.</em></strong><em> A ₹2,000 cash flow business could be worth ₹2,000, ₹20,000, ₹40,000, or much more depending on its future prospects.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca2b0b241dc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Discounted Cash Flow (DCF): The Ultimate Guide to Valuing a Business Like an Investment Banker]]></title>
            <link>https://medium.com/@udit/discounted-cash-flow-dcf-the-ultimate-guide-to-valuing-a-business-like-an-investment-banker-837789bda6f9?source=rss-e932fb1f4ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/837789bda6f9</guid>
            <category><![CDATA[investment-banking]]></category>
            <category><![CDATA[investment]]></category>
            <dc:creator><![CDATA[Udit Saurabh]]></dc:creator>
            <pubDate>Tue, 26 May 2026 08:48:00 GMT</pubDate>
            <atom:updated>2026-05-26T08:48:00.423Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Learn how investment bankers, private equity firms, and investors use DCF to determine what a company is really worth.</em></p><h3>Introduction</h3><p>Imagine someone offers to sell you a mango orchard.</p><p>The orchard generates ₹1 lakh every year from selling mangoes.</p><p>How much should you pay for it?</p><p>₹1 lakh?</p><p>₹5 lakh?</p><p>₹20 lakh?</p><p>To answer this question, you need to estimate the value of all future cash the orchard will generate.</p><p>This is exactly what investment bankers do when valuing companies.</p><p>They use a method called <strong>Discounted Cash Flow (DCF) Analysis</strong>.</p><p>DCF is one of the most powerful valuation tools in finance because it focuses on what ultimately matters:</p><blockquote><em>Cash generated by a business.</em></blockquote><p>Whether a company manufactures soft drinks, sells software, or operates factories, its value depends largely on the cash it can produce in the future.</p><h3>What is Discounted Cash Flow (DCF)?</h3><p>Discounted Cash Flow (DCF) is a valuation method that estimates the present value of future cash flows generated by a business.</p><p>In simple terms:</p><blockquote><em>DCF answers the question: “What are future cash flows worth today?”</em></blockquote><p>The underlying principle is known as the <strong>Time Value of Money</strong>.</p><h3>Why is Money Today More Valuable Than Money Tomorrow?</h3><p>Suppose someone offers you:</p><ul><li>₹1,000 today</li><li>₹1,000 five years from now</li></ul><p>Most people would choose ₹1,000 today.</p><p>Why?</p><p>Because today’s money can be:</p><ul><li>Invested</li><li>Earn interest</li><li>Generate returns</li><li>Be used immediately</li></ul><p>Therefore:</p><blockquote><em>₹1,000 today is worth more than ₹1,000 received in the future.</em></blockquote><p>This simple idea forms the foundation of DCF analysis.</p><h3>The Psychology Behind DCF</h3><p>Even people with no finance knowledge naturally understand DCF subconsciously.</p><p>Consider these situations:</p><h3>Situation 1</h3><p>Your employer offers:</p><ul><li>₹50,000 salary today</li></ul><p>OR</p><ul><li>₹50,000 after two years</li></ul><p>Which would you choose?</p><p>Most people prefer immediate payment.</p><h3>Situation 2</h3><p>A farmer can sell his harvest today or wait three years.</p><p>The future payment carries risk:</p><ul><li>Bad weather</li><li>Market changes</li><li>Inflation</li></ul><p>Therefore future money becomes less certain.</p><p>Your brain automatically discounts future value.</p><p>DCF simply converts this human intuition into mathematics.</p><h3>The Core DCF Formula</h3><p>DCF = \sum_{t=1}^{n}\frac{FCF_t}{(1+r)^t}</p><p>Where:</p><ul><li>FCF = Free Cash Flow</li><li>r = Discount Rate</li><li>t = Time Period</li></ul><p>Don’t worry if the formula looks intimidating.</p><p>We’ll break it down step by step.</p><h3>What is Free Cash Flow?</h3><p>Free Cash Flow (FCF) is the money a company has left after paying for its operations and investments.</p><p>Think of it as:</p><blockquote><em>The actual cash a business can distribute to investors.</em></blockquote><p>For example:</p><p>A beverage company earns:</p><p>Revenue: ₹100 crore</p><p>Expenses: ₹70 crore</p><p>Factory investments: ₹10 crore</p><p>Remaining cash:</p><p>₹20 crore</p><p>That remaining cash is the value investors care about.</p><h3>Example 1: Valuing a Local Beverage Company</h3><p>Suppose a beverage company is expected to generate:</p><p>YearFree Cash Flow1₹10 crore2₹12 crore3₹15 crore</p><p>Discount Rate = 10%</p><h3>Step 1: Discount Year 1 Cash Flow</h3><p>Present Value:</p><p>₹10 ÷ 1.10</p><p>= ₹9.09 crore</p><h3>Step 2: Discount Year 2 Cash Flow</h3><p>₹12 ÷ (1.10)²</p><p>= ₹9.92 crore</p><h3>Step 3: Discount Year 3 Cash Flow</h3><p>₹15 ÷ (1.10)³</p><p>= ₹11.27 crore</p><h3>Total Present Value</h3><p>₹9.09 crore</p><ul><li>₹9.92 crore</li><li>₹11.27 crore</li></ul><p>= ₹30.28 crore</p><p>This means the future cash generated by the company is worth approximately ₹30.28 crore today.</p><h3>Real-World Example: Acquiring a Soft Drink Company</h3><p>Imagine you own a growing beverage business.</p><p>You are considering buying the brand:</p><p>Campa Cola</p><p>Before acquiring it, you need answers to questions like:</p><ul><li>How much cash will the business generate?</li><li>How fast will sales grow?</li><li>Is the asking price reasonable?</li></ul><p>Investment bankers build DCF models to estimate the fair acquisition price.</p><p>If DCF indicates the company is worth ₹5,000 crore and the seller wants ₹8,000 crore, the buyer may walk away.</p><h3>Where DCF Is Used</h3><h3>1. Mergers and Acquisitions (M&amp;A)</h3><p>When companies buy other companies.</p><p>Example:</p><p>Reliance Industries evaluates acquisitions based on expected future cash flows.</p><p>Questions asked:</p><ul><li>How much will the target earn?</li><li>Will the acquisition create value?</li><li>What is the maximum price we should pay?</li></ul><p>DCF helps answer all three.</p><h3>2. Initial Public Offerings (IPOs)</h3><p>Before a company goes public, bankers must estimate its value.</p><p>Example:</p><p>Suppose a growing beverage company plans an IPO.</p><p>Investors ask:</p><blockquote><em>Why should we value this company at ₹10,000 crore?</em></blockquote><p>Bankers use DCF alongside other methods to justify valuation.</p><h3>The Most Important Input: The Discount Rate</h3><p>The discount rate reflects risk.</p><p>Think about lending money to:</p><h3>Option A</h3><p>A government bond.</p><h3>Option B</h3><p>A new startup.</p><p>Which is riskier?</p><p>The startup.</p><p>Because of higher risk, investors demand higher returns.</p><p>Therefore:</p><p>Higher Risk → Higher Discount Rate</p><p>Higher Discount Rate → Lower Valuation</p><h3>Why DCF Is So Powerful</h3><p>Unlike market rumors or social media opinions, DCF focuses on:</p><ul><li>Cash generation</li><li>Growth</li><li>Risk</li><li>Business fundamentals</li></ul><p>It forces investors to think like business owners.</p><h3>Why DCF Is Also Dangerous</h3><p>Small changes can dramatically affect valuation.</p><p>Example:</p><p>Growth Rate = 5%</p><p>Valuation = ₹1,000 crore</p><p>Growth Rate = 7%</p><p>Valuation may jump to ₹1,400 crore</p><p>A tiny assumption change can create massive valuation differences.</p><p>This is why experienced bankers spend enormous time validating assumptions.</p><h3>Common Mistakes Beginners Make</h3><h3>1. Unrealistic Growth Forecasts</h3><p>Many assume:</p><ul><li>50%</li><li>60%</li><li>100%</li></ul><p>growth forever.</p><p>In reality, growth eventually slows.</p><h3>2. Ignoring Risk</h3><p>Future cash is never guaranteed.</p><p>Risk must be reflected through discount rates.</p><h3>3. Confusing Profit With Cash</h3><p>Profit and cash are not the same.</p><p>A company can report profits but have little cash.</p><p>Investment bankers focus heavily on cash flow.</p><h3>How Investment Bankers Actually Think</h3><p>Most beginners think:</p><blockquote><em>“How much profit does the company make?”</em></blockquote><p>Investment bankers think:</p><blockquote><em>“How much cash will this company generate over the next 10 years, and what is that cash worth today?”</em></blockquote><p>That mindset shift is the essence of valuation.</p><h3>DCF Explained Through Human Psychology</h3><p>Subconsciously, humans perform DCF every day.</p><p>When choosing:</p><ul><li>A job offer</li><li>A house purchase</li><li>A business investment</li><li>A college degree</li></ul><p>you estimate:</p><ul><li>Future benefits</li><li>Future risks</li><li>Present costs</li></ul><p>DCF simply formalizes this decision-making process.</p><p>In many ways:</p><blockquote><em>DCF is not just a finance formula. It is a mathematical representation of how humans evaluate future rewards.</em></blockquote><h3>Conclusion</h3><p>Discounted Cash Flow Analysis is one of the most important tools in investment banking, private equity, equity research, and corporate finance.</p><p>It helps answer a fundamental question:</p><blockquote><em>“What is a business truly worth?”</em></blockquote><p>By estimating future cash flows and adjusting them for risk and time, DCF provides a framework for making rational investment decisions.</p><p>Whether you are valuing a local manufacturing company, analyzing an IPO, or evaluating a billion-dollar acquisition, understanding DCF will help you think like an investor rather than a speculator.</p><p><strong>Remember:</strong></p><blockquote><em>Revenue is vanity.<br>Profit is opinion.<br>Cash flow is reality.<br>DCF values reality.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=837789bda6f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SEO-friendly blog system inside your Next.js website]]></title>
            <link>https://medium.com/@udit/seo-friendly-blog-system-inside-your-next-js-website-so-it-08fd8b774b57?source=rss-e932fb1f4ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/08fd8b774b57</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[nextjs-tutorial]]></category>
            <dc:creator><![CDATA[Udit Saurabh]]></dc:creator>
            <pubDate>Sun, 21 Sep 2025 12:31:28 GMT</pubDate>
            <atom:updated>2025-09-21T12:32:14.728Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>SEO-friendly blog system</strong> inside your <strong>Next.js website</strong></p><p>✅ <strong>Ranks on Google</strong> (crawlable, fast, structured)</p><p>✅ <strong>Includes affiliate products</strong> (natural product placement)</p><p>✅ <strong>Has backlinks opportunities</strong> (internal &amp; external linking)</p><h3>🔥 Step-by-Step: SEO-Friendly Blog in Next.js</h3><h3>1. Project Setup</h3><pre>npx create-next-app@latest my-blog<br>cd my-blog<br>npm install next-sitemap react-markdown gray-matter</pre><ul><li><strong>next-sitemap</strong> → auto-generate sitemap.xml &amp; robots.txt for SEO.</li><li><strong>gray-matter</strong> → parse blog metadata (title, description, tags).</li><li><strong>react-markdown</strong> → render blog content from Markdown files.</li></ul><h3>2. Folder Structure</h3><pre>my-blog/<br> ├─ pages/<br> │   ├─ index.js<br> │   ├─ blog/<br> │   │   ├─ [slug].js   ← dynamic blog page<br> ├─ posts/             ← your markdown blogs<br> │   ├─ free-hosting-nextjs.md<br> │   ├─ seo-nextjs-guide.md<br> │   ├─ productivity-n8n.md<br> ├─ next-sitemap.config.js</pre><h3>. Example Blog Post (Markdown)</h3><p>📂 posts/free-hosting-nextjs.md</p><pre>---<br>title: &quot;🚀 Best Free Hosting Platforms for Next.js Websites (2025 Guide)&quot;<br>description: &quot;Learn the best free and scalable hosting providers for Next.js websites — Vercel, Netlify, and Hostinger compared.&quot;<br>date: &quot;2025-09-21&quot;<br>tags: [&quot;nextjs&quot;, &quot;hosting&quot;, &quot;seo&quot;, &quot;affiliate&quot;]<br>---</pre><pre>Hosting your **Next.js website** doesn’t have to cost a dime.  <br>Here are the top free hosting providers:</pre><pre>### 1. Vercel (Official Next.js Hosting)<br>👉 [Try Vercel Free](your-vercel-affiliate-link)</pre><pre>### 2. Netlify<br>👉 [Get Free Hosting on Netlify](your-netlify-affiliate-link)</pre><pre>### 3. Hostinger (Cheap Alternative)<br>👉 [Check Hostinger Plans](your-hostinger-affiliate-link)</pre><h3>4. Dynamic Blog Page</h3><p>📂 pages/blog/[slug].js</p><pre>import fs from &quot;fs&quot;;<br>import path from &quot;path&quot;;<br>import matter from &quot;gray-matter&quot;;<br>import { remark } from &quot;remark&quot;;<br>import html from &quot;remark-html&quot;;</pre><pre>export async function getStaticPaths() {<br>  const files = fs.readdirSync(&quot;posts&quot;);<br>  const paths = files.map((filename) =&gt; ({<br>    params: { slug: filename.replace(&quot;.md&quot;, &quot;&quot;) },<br>  }));<br>  return { paths, fallback: false };<br>}</pre><pre>export async function getStaticProps({ params }) {<br>  const filePath = path.join(&quot;posts&quot;, params.slug + &quot;.md&quot;);<br>  const fileContent = fs.readFileSync(filePath, &quot;utf-8&quot;);<br>  const { data, content } = matter(fileContent);<br>  const processedContent = await remark().use(html).process(content);</pre><pre>  return { props: { frontmatter: data, content: processedContent.toString() } };<br>}</pre><pre>export default function BlogPage({ frontmatter, content }) {<br>  return (<br>    &lt;main className=&quot;max-w-3xl mx-auto p-6&quot;&gt;<br>      &lt;h1 className=&quot;text-3xl font-bold&quot;&gt;{frontmatter.title}&lt;/h1&gt;<br>      &lt;p className=&quot;text-gray-600&quot;&gt;{frontmatter.description}&lt;/p&gt;<br>      &lt;article<br>        className=&quot;prose&quot;<br>        dangerouslySetInnerHTML={{ __html: content }}<br>      /&gt;<br>    &lt;/main&gt;<br>  );<br>}</pre><h3>5. SEO Setup</h3><p>📂 next-sitemap.config.js</p><pre>module.exports = {<br>  siteUrl: &quot;https://yourdomain.com&quot;,<br>  generateRobotsTxt: true,<br>  sitemapSize: 7000,<br>};</pre><p>Add in package.json:</p><pre>&quot;scripts&quot;: {<br>  &quot;postbuild&quot;: &quot;next-sitemap&quot;<br>}</pre><h3>6. Internal &amp; External Linking</h3><p>Inside your blog posts → link to <strong>your other blogs</strong> (/blog/seo-nextjs-guide).</p><p>Add <strong>affiliate links</strong> naturally (Hostinger, Vercel, Netlify).</p><p>External backlinks → link to <strong>Next.js Docs</strong>, <strong>Google Developers</strong> (Google values authority).</p><h3>7.Deployment (Free &amp; Scalable)</h3><p>Deploy on <strong>Vercel</strong> → auto-SEO, serverless functions.</p><p>Custom domain (add CNAME record in DNS).</p><h3>✅ What You’ll Get:</h3><p>SEO-ready Next.js blog with affiliate products</p><p>Auto-generated sitemap + robots.txt</p><p>Easy content management with Markdown</p><p>Internal + external backlinks for Google ranking</p><p>Free &amp; scalable deployment</p><p>Great question 👍 — making your <strong>Next.js website crawlable and indexable by Google</strong> is mainly about <strong>site structure, metadata, and SEO optimizations</strong>. I’ll break it down step by step:</p><h3>1. Use File-Based Routing Correctly</h3><p>Next.js uses <strong>file-based routing</strong> (pages/ or app/ directory).</p><p>Each file automatically becomes a URL:</p><p>/pages/index.js → /</p><p>/pages/about.js → /about</p><p>/pages/blog/[slug].js → /blog/my-post</p><p>Keep URLs <strong>short, descriptive, and keyword-rich</strong>:<br> ✅ /seo-tips<br> ❌ /page1?id=123</p><h3>2. Add Metadata &amp; Titles</h3><p>Google relies heavily on <strong>title, meta description, and structured data</strong>.</p><p>If using the <strong>app/ directory</strong> (Next.js 13+):</p><pre>// app/about/page.js<br>export const metadata = {<br>  title: &quot;About Us | My Website&quot;,<br>  description: &quot;Learn more about our team and mission.&quot;,<br>};</pre><p>If using the <strong>pages/ directory</strong>:</p><pre>import Head from &quot;next/head&quot;;</pre><pre>export default function About() {<br>  return (<br>    &lt;&gt;<br>      &lt;Head&gt;<br>        &lt;title&gt;About Us | My Website&lt;/title&gt;<br>        &lt;meta name=&quot;description&quot; content=&quot;Learn more about our team and mission.&quot; /&gt;<br>      &lt;/Head&gt;<br>      &lt;h1&gt;About Us&lt;/h1&gt;<br>    &lt;/&gt;<br>  );<br>}</pre><h3>3. Generate Sitemaps</h3><p>A <strong>sitemap</strong> helps Google discover your pages.</p><p>Use <a href="https://www.npmjs.com/package/next-sitemap">next-sitemap</a>:</p><pre>npm install next-sitemap</pre><p>next-sitemap.config.js:</p><pre>module.exports = {<br>  siteUrl: &quot;https://yourdomain.com&quot;,<br>  generateRobotsTxt: true,<br>};</pre><p>Run:</p><pre>npx next-sitemap</pre><p>This generates:</p><p>sitemap.xml</p><p>robots.txt</p><p>Submit sitemap.xml to Google Search Console.</p><h3>4. Use Robots.txt Correctly</h3><p>Robots.txt tells crawlers what to index.</p><p>Example robots.txt:</p><pre>User-agent: *<br>Allow: /</pre><pre>Sitemap: <a href="https://yourdomain.com/sitemap.xml">https://yourdomain.com/sitemap.xml</a></pre><h3>5. Optimize Internal Linking</h3><p>Link pages together so Google <strong>crawls deeper</strong> into your site.</p><p>Example: Blog index page linking to all blog posts.</p><p>Use &lt;Link&gt; from Next.js instead of raw &lt;a&gt; for better performance.</p><h3>6. Handle Dynamic Pages</h3><p>For blogs, products, or events:</p><p>Use <strong>getStaticPaths</strong> + <strong>getStaticProps</strong> (SSG) for SEO-friendly static pages.</p><p>Example:</p><pre>export async function getStaticPaths() {<br>  const posts = await fetchPosts();<br>  return {<br>    paths: posts.map((post) =&gt; ({ params: { slug: post.slug } })),<br>    fallback: false,<br>  };<br>}</pre><p>This ensures each post gets its <strong>own HTML page</strong> → crawlable.</p><h3>7. Structured Data (Schema.org)</h3><p>Add JSON-LD for rich results:</p><pre>&lt;Head&gt;<br>  &lt;script<br>    type=&quot;application/ld+json&quot;<br>    dangerouslySetInnerHTML={{<br>      __html: JSON.stringify({<br>        &quot;@context&quot;: &quot;https://schema.org&quot;,<br>        &quot;@type&quot;: &quot;Article&quot;,<br>        headline: &quot;My Blog Post&quot;,<br>        datePublished: &quot;2025-09-20&quot;,<br>        author: { &quot;@type&quot;: &quot;Person&quot;, name: &quot;Udit&quot; },<br>      }),<br>    }}<br>  /&gt;<br>&lt;/Head&gt;</pre><h3>8. Performance &amp; Mobile</h3><p>Google prioritizes:</p><p><strong>Fast sites</strong> → use Next.js Image optimization &amp; next/script for lazy loading.</p><p><strong>Mobile-first</strong> → ensure responsive design.</p><h3>9. Canonical URLs</h3><p>Avoid duplicate content:</p><pre>&lt;Head&gt;<br>  &lt;link rel=&quot;canonical&quot; href=&quot;https://yourdomain.com/blog/my-post&quot; /&gt;<br>&lt;/Head&gt;</pre><p>✅ <strong>In summary:</strong></p><p>Use clean, keyword-rich URLs.</p><p>Add metadata (title + description).</p><p>Generate sitemap + robots.txt.</p><p>Use internal linking.</p><p>Pre-render dynamic pages with getStaticProps.</p><p>Add structured data (JSON-LD).</p><p>Optimize performance &amp; mobile.</p><p>Add canonical URLs.</p><p>👉 Do you want me to create a <strong>ready-to-use Next.js SEO boilerplate project</strong> with all this set up (sitemap, robots, meta, schema, etc.) so you can just copy-paste into your app?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08fd8b774b57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Host a Next.js Website Free of Cost (and Scalable)]]></title>
            <link>https://medium.com/@udit/how-to-host-a-next-js-website-free-of-cost-and-scalable-8f25de30de18?source=rss-e932fb1f4ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f25de30de18</guid>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Udit Saurabh]]></dc:creator>
            <pubDate>Sun, 21 Sep 2025 12:16:25 GMT</pubDate>
            <atom:updated>2025-09-21T12:16:25.681Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re building with <strong>Next.js</strong>, you already know it’s one of the most powerful React frameworks for modern web apps. But here’s the big question:</p><p>👉 <strong>Where do you host it without spending money and still keep it scalable?</strong></p><p>Good news — you don’t need to pay upfront. In this guide, I’ll show you the <strong>best free platforms</strong> to host your Next.js website, plus how to scale later when your traffic grows.</p><h3>🚀 Why Next.js Needs the Right Hosting</h3><p>Next.js apps can be:</p><ul><li><strong>Static (SSG)</strong> — great for blogs, portfolios, and marketing websites.</li><li><strong>Dynamic (SSR/ISR)</strong> — perfect for SaaS, dashboards, and e-commerce.</li></ul><p>Your hosting platform must support <strong>serverless functions, edge deployment, and CDNs</strong> for best performance. Luckily, many free hosting services already do this.</p><h3>🆓 Best Free Hosting Platforms for Next.js</h3><h3>1. Vercel (Best Choice)</h3><p>Vercel is the <strong>creator of Next.js</strong>, so it offers the smoothest hosting experience.</p><ul><li><strong>Free Plan Includes:</strong><br> ✅ Automatic Next.js optimization<br> ✅ Global Edge Network<br> ✅ GitHub/GitLab/Bitbucket integration<br> ✅ Unlimited websites</li></ul><p>👉 <a href="https://vercel.com/?utm_source=affiliate">Try Vercel Free Here</a></p><h3>2. Netlify</h3><p>Another excellent option for static &amp; serverless hosting.</p><ul><li><strong>Free Plan Includes:</strong><br> ✅ 125k serverless function calls<br> ✅ Free SSL &amp; CDN<br> ✅ One-click Git deployments</li></ul><p>👉 <a href="https://www.netlify.com/?utm_source=affiliate">Get Started with Netlify Free</a></p><h3>3. Railway.app</h3><p>Railway is a developer-friendly cloud for <strong>full-stack apps</strong>.</p><ul><li><strong>Free Plan Includes:</strong><br> ✅ $5 monthly credit (~500 hours free hosting)<br> ✅ Serverless Postgres Database<br> ✅ Super easy deployments</li></ul><p>👉 <a href="https://railway.app/?utm_source=affiliate">Deploy Next.js on Railway</a></p><h3>4. Render</h3><p>Render is great if you need <strong>databases + server hosting</strong>.</p><ul><li><strong>Free Plan Includes:</strong><br> ✅ Free static sites<br> ✅ 750 free hours of web service hosting<br> ✅ Free PostgreSQL (with limits)</li></ul><p>👉 <a href="https://render.com/?utm_source=affiliate">Check Render Free Plan</a></p><h3>5. Supabase (Bonus for Full-Stack)</h3><p>Supabase isn’t just hosting — it’s a <strong>Firebase alternative</strong> with Postgres DB + auth + APIs. Perfect for Next.js apps that need a backend.</p><p>👉 <a href="https://supabase.com/?utm_source=affiliate">Start Free with Supabase</a></p><h3>📦 Step-by-Step: Deploy Next.js for Free on Vercel</h3><ol><li><strong>Push Your Code to GitHub</strong></li></ol><ul><li>git init</li><li>git add .</li><li>git commit -m &quot;Initial commit&quot;</li><li>git push origin main</li></ul><p><strong>Login to Vercel</strong><br> Sign up with GitHub here → <a href="https://vercel.com/?utm_source=affiliate">Vercel Free</a>.</p><p><strong>Import Project</strong><br> Select your repo → Deploy → Done.</p><p><strong>Automatic URL &amp; SSL</strong><br> Instantly live at yourproject.vercel.app 🚀</p><h3>📊 SEO &amp; Performance Tips</h3><ul><li>Use <strong>Image Optimization</strong> (next/image)</li><li>Enable <strong>Incremental Static Regeneration (ISR)</strong> for blogs</li><li>Use <strong>Environment Variables</strong> for APIs</li><li>Monitor analytics with <strong>Vercel Analytics (free tier)</strong></li></ul><h3>💡 Final Thoughts</h3><p>Hosting a <strong>Next.js website for free</strong> is not only possible but also highly scalable. Start free on <strong>Vercel or Netlify</strong>, then expand to <strong>Railway or Render</strong> when you need databases or advanced backends.</p><p>Whether you’re building a <strong>personal portfolio, SaaS MVP, or e-commerce store</strong>, these free hosting solutions let you <strong>launch today with $0 cost</strong>.</p><p>👉 Try it now: <a href="https://vercel.com/?utm_source=affiliate">Host Your Next.js App Free on Vercel</a></p><p>✅ <strong>SEO Keywords Covered:</strong></p><ul><li>Free Next.js hosting</li><li>Scalable Next.js deployment</li><li>Host Next.js on Vercel/Netlify/Railway</li><li>Best hosting for Next.js</li></ul><p>✅ <strong>Affiliate Marketing Opportunities:</strong></p><ul><li>Vercel, Netlify, Railway, Render, Supabase</li></ul><p>Would you like me to also <strong>create a blog outline with H1/H2/H3 structure + meta description + keywords list</strong> so you can directly publish it to WordPress for SEO boost?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f25de30de18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Product Management -A 1000 ft]]></title>
            <link>https://medium.com/@udit/product-management-a-1000-ft-d732f49a1211?source=rss-e932fb1f4ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d732f49a1211</guid>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Udit Saurabh]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 21:28:40 GMT</pubDate>
            <atom:updated>2025-08-05T21:28:40.890Z</atom:updated>
            <content:encoded><![CDATA[<h3>Product Management -A 1000 ft study</h3><p><strong>What is Product Management?</strong></p><p>Product Management is the discipline of identifying user needs, aligning them with business goals, and collaborating with cross-functional teams to build successful products. PMs don’t just ship features — they solve problems.</p><p>In our context, we’re building a <strong>Naukri-like job employment platform</strong> tailored for regional talent. Every chapter in this book will guide you through building this platform while mastering PM skills.</p><p><strong>The PM Triangle: User, Business, Tech</strong></p><p>Product Managers sit at the intersection of:</p><ul><li><strong>User Desirability</strong>: What do users actually want?</li><li><strong>Business Viability</strong>: What supports our business goals?</li><li><strong>Technical Feasibility</strong>: What can be realistically built?</li></ul><p>A great PM balances all three.</p><p><strong>Diagram: The PM Triangle</strong></p><p>User</p><p>/ \</p><p>/ \</p><p>Tech — — — — Business</p><p><strong>Key Responsibilities of a Product Manager</strong></p><ol><li><strong>User Research</strong></li><li><strong>Problem Discovery &amp; Validation</strong></li><li><strong>Roadmap Planning</strong></li><li><strong>Defining Requirements (PRDs)</strong></li><li><strong>Stakeholder Communication</strong></li><li><strong>Execution &amp; Delivery with Dev Team</strong></li><li><strong>Post-launch Metrics &amp; Iteration</strong></li></ol><p><strong>Real-Life Scenario: Building Our Job App</strong></p><p>Imagine our team is building a regional job app. Your CEO wants a feature to filter jobs by English fluency. The developer says it’ll take a week. What do you do?</p><p>As a PM, you:</p><ul><li>Check user data: Is English fluency a real filter users want?</li><li>Talk to recruiters: Is this filter useful?</li><li>Balance speed vs. impact.</li><li>Prioritize if needed or find a lightweight MVP (e.g., tag jobs manually for now).</li></ul><p><strong>Common Interview Questions (with Answers from Our App Case)</strong></p><p><strong>Q1: What does a PM do day-to-day?</strong></p><ul><li>Start with team stand-up</li><li>Review analytics on job seeker signups</li><li>Meet with the recruiter onboarding team</li><li>Write PRD for “video resume” feature</li><li>Align with design and engineering</li><li>Sync with marketing for upcoming campaign</li></ul><p><strong>Q2: What makes a good Product Manager?</strong></p><ul><li>Empathy: Rajeev (a job seeker persona) needs jobs in Hindi; we listen.</li><li>Clarity: Priya (recruiter) wants filtered CVs. We write specs that meet this.</li><li>Prioritization: Resume builder vs. job alert feature — what’s first and why?</li></ul><p><strong>Q3: What’s a feature you disagreed with?</strong></p><ul><li>In our app, a stakeholder wanted a built-in video editor. We validated and found users prefer uploading from phone gallery. We proposed a simple upload + compress flow instead.</li></ul><p><strong>Q4: Tell me about a failed product.</strong></p><ul><li>Say we built a chatbot for job seekers. But data showed users dropped off after the 3rd message. Why? We didn’t test tone or script. Lesson: Test messaging early.</li></ul><p><strong>Personas for Our Naukri App</strong></p><p><strong>Rajeev — Tier 2 Job Seeker</strong></p><ul><li>Pain: Doesn’t know which jobs to apply for</li><li>Goal: Get job alerts based on skills</li></ul><p><strong>Priya — HR Manager in Indore</strong></p><ul><li>Pain: High churn, hard to find local filtered resumes</li><li>Goal: Hire quickly without too many interviews</li></ul><p><strong>Exercise</strong><br> Write 3 bullet points for how you’d explain “What does a PM do?” to a friend who thinks PMs just take notes in meetings.</p><p><strong>Key Takeaways</strong></p><ul><li>PM = Problem Solver, not just Feature Owner</li><li>Balance user, tech, and business</li></ul><p>Learn by building. Our Naukri app is your sandbox</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d732f49a1211" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Good Names in Programming.]]></title>
            <link>https://medium.com/@udit/good-names-in-programming-15800accd4ee?source=rss-e932fb1f4ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/15800accd4ee</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Udit Saurabh]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 12:33:58 GMT</pubDate>
            <atom:updated>2025-08-04T12:33:58.533Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>One rule which applies to naming all the functions classes and variables is that names should be meaningful.</blockquote><p>It should be so meaningful that anyone can understand what it does without looking at the code to understand its functionality. Look at the below code in which class names and method names are very generic. We need to be very specific rather than generic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6fo86b1sz61SSdaF0Vs_iA.png" /></figure><p><strong>Names Matter!!!</strong></p><p>How do we name things correctly in programming?</p><ol><li>Variables/Constants</li><li>function/methods</li><li>Classes</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15800accd4ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic routes in Next.js]]></title>
            <link>https://medium.com/@udit/dynamic-routes-in-next-js-bcbfa273d38d?source=rss-e932fb1f4ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcbfa273d38d</guid>
            <category><![CDATA[next]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Udit Saurabh]]></dc:creator>
            <pubDate>Sun, 09 Mar 2025 02:04:08 GMT</pubDate>
            <atom:updated>2025-03-09T02:04:08.855Z</atom:updated>
            <content:encoded><![CDATA[<p>Dynamic routes have something dynamic/changing about routing and paths.</p><p>In our hotel management project, suppose we create a route blog section and wish to display blogs based on dynamic route change, like blog/1,blog/2, etc, then we can use this functionality.😁😁😁😁😁😁</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*HY20MHHvnDyi6S7Y4r5tow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WjJQMomtE-hayZ5J5J35Kg.png" /></figure><p>We can do dynamic routing in just 2 simple steps.</p><ol><li>Create a folder with the name blog (folder name along which we need to create the blog posts).</li><li>Create another folder for the dynamic route like in /blog/2 for 2 by the name of [id]. In the folder [id] we create a file for page.tsx for rendering the jsx content.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*zvg5WQcDh8QfdanwdQCaoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*HY20MHHvnDyi6S7Y4r5tow.png" /><figcaption>Code for extracting the dynamic route value for using it like id or slug.</figcaption></figure><pre><br><br>export default async function Page({<br>    params,<br>  }: {<br>    params: Promise&lt;{ id: string }&gt;<br>  })  <br>{<br>    const {id} = await params<br>    return( &lt;div&gt;this is id {id}&lt;/div&gt;)<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcbfa273d38d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prefetching of routes in Next.js]]></title>
            <link>https://medium.com/@udit/prefetching-of-routes-in-next-js-bbaecec04d30?source=rss-e932fb1f4ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbaecec04d30</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Udit Saurabh]]></dc:creator>
            <pubDate>Sat, 08 Mar 2025 13:37:31 GMT</pubDate>
            <atom:updated>2025-03-08T13:37:31.181Z</atom:updated>
            <content:encoded><![CDATA[<p>Prefetching of routes is an important thing and works only on the production build.</p><p>How to run our project with the production build is using 2 commands.</p><ol><li>npm run build</li><li>npm run start</li></ol><p>To navigate in the link tag, we generally use the &lt;Link/&gt; tag, and Link tag in production mode caches the content, and whenever we make some changes, we need to refresh the browser to see the changes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8GQAS_e0oIOda_Xjqw29ZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8dKAcsYp4UmMTwz76NXb9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*KjP1ICcplB9OCVF-X76djA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FxH-2fbV4fXjFZT1VR-NKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8GQAS_e0oIOda_Xjqw29ZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*uxaLfiveYqSrN8OQQvd3Kw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8dKAcsYp4UmMTwz76NXb9A.png" /></figure><p>After manual page refresh, we can see the changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZHWj25Nscna5ewfjA-czZA.png" /></figure><p><strong>Drawback is sometimes the pages are not refreshed, and we need to refresh it manually 😊😊😊😊😊😊😊😊😊</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbaecec04d30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Layouts in Next.js]]></title>
            <link>https://medium.com/@udit/layouts-in-next-js-b2986dfbc8e2?source=rss-e932fb1f4ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2986dfbc8e2</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Udit Saurabh]]></dc:creator>
            <pubDate>Sat, 08 Mar 2025 03:45:12 GMT</pubDate>
            <atom:updated>2025-03-08T03:45:12.301Z</atom:updated>
            <content:encoded><![CDATA[<p>Layouts in Next.js are a wrapper over the pages and it’s used to write <strong>common content</strong> across pages like the header, the footer, etc. 😊</p><p>Also its main use came from the SOLID principle of code reusability. It can be created for the whole project or the app, but it can also be created for a particular route.</p><p>The below example shows an app called hotel management and in this app we have created a file called page.tsx which is for the entire project and its layout for the entire project which means every route.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZNkTAonzzjMRI2j_j9J20A.png" /></figure><p>The below images show an app running at port 3000. After it, there is a header, and it&#39;s common to all routes whose code is above where home, about and other sections are mentioned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lKxxSjcgWBh4_opkVfi7qg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AKsD8PiLe3sElMneAxIo_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b-5CL-OKVz7rSCW5CRd2ng.png" /></figure><p>Now we create a route for each page, like about, and it will wrap only the content of about route and not the entire app. It will wrap the content of the page.tsx under about folder and no other route or folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zJ_Q9s98O2_SBdkUNjPRRw.png" /></figure><h3>The above code is about section and within it there is a layout and in that we have wrapped the content of page.tsx with the layout content. We can also see that in the layout file we have used children. In React, we know children is used basically as a wrapped content and content above and below is the wrapper.</h3><p><strong>Please subscribe for dynamic routes, slug, Link and others.😊😊😊😊😊</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2986dfbc8e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[File system pages and Routing in next.js]]></title>
            <link>https://medium.com/@udit/file-system-pages-and-routing-in-next-js-5a61a27b6fc1?source=rss-e932fb1f4ca2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a61a27b6fc1</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[Udit Saurabh]]></dc:creator>
            <pubDate>Fri, 07 Mar 2025 16:04:05 GMT</pubDate>
            <atom:updated>2025-03-07T17:13:31.572Z</atom:updated>
            <content:encoded><![CDATA[<p>The simplest and easiest way of routing supported by next js is file system routing and its URI and path is directly replaced or modeled from the folder structure of our application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eVJeNkU5l7-o7besMuS-SQ.png" /></figure><p>Here we wish to create a new route /about and render few content in it and for that we create a new folder about as shown in image above and then in about we can create a new file with name page .jsx or tsx as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X5SxGTmYK6kP4M5g8mdYuQ.png" /></figure><p>we can write the details of the file in the page.tsx/page.jsx and render the content there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OM-VzxBwNzR_YqzX31A96g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E94yMKOjEtsPItm-sRQb5g.png" /></figure><p>for routes likes /about/projects we can create a folder inside about with name projects and create a file with name page.tsx as illustrated below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhTHO5f7T0ovaID3L1xvig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*szepauABQZgE2-J_5oscJw.png" /></figure><p>Summary</p><p>For creating routes in next.js</p><ol><li>create a folder name with name of the pathname like about etc</li><li>create a file with name page.tsx and return the display content which needed to be displayed on that route.</li><li>if we need nested route like /about/project then create a folder name /about create a file page.tsx for that folder and a folder again inside about called project and a file page.tsx to render content when we go to route at /about/page.tsx</li></ol><h3><strong>Please follow and subscribe for dynamic routing !!!</strong></h3><p>😊😊😊😊😊😊😊😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a61a27b6fc1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>