Tech TutorBangla Web Documentation
Portfolio
HomeHTMLCSSTailwind CSSJavaScriptTypeScriptReactNext.jsNode.jsExpressSocket.IOExpoWordPressPostgreSQLPrismaPostgresNestJSMongoDBDockerTanStackTanStack TableRTK QueryGitGitHub
  • Next.js Documentation27টি অধ্যায়
প্রযুক্তি নির্বাচন
HomeHTMLCSSTailwind CSSJavaScriptTypeScriptReactNext.jsNode.jsExpressSocket.IOExpoWordPressPostgreSQLPrismaPostgresNestJSMongoDBDockerTanStackTanStack TableRTK QueryGitGitHub
  • Introduction
  • কেন Next.js?
  • Installation
  • Project Structure
  • Routing ও Pages
  • Layouts
  • Linking ও Navigation
  • Server & Client Components
  • Dynamic Routes
  • Data Fetching
  • Loading ও Streaming
  • Error Handling
  • Route Handlers
  • Server Actions
  • Caching ও Revalidation
  • Metadata ও SEO
  • Images ও Fonts
  • Styling
  • Environment Variables
  • Development ও Production
  • Deployment
  • Configuration
  • Static ও Dynamic Rendering
  • Proxy
  • Performance
  • Project: Blog
  • Project: Dashboard
  1. Docs
  2. Next.js
  3. Next.js Configuration
Next.jsAdvanced

Next.js Configuration

next.config.ts — images, redirects, rewrites, experimental options বাংলায়।

10টি অংশবাংলা ভাষায়

next.config.ts হলো Next.js-এর central configuration file। এতে project-এর behavior কাস্টমাইজ করা যায়।

মৌলিক Config

next.config.tsts
ts
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  // এখানে options
};

export default nextConfig;

Common Options

next.config.tsts
ts
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  images: {
    remotePatterns: [
      {
        protocol: "https",
        hostname: "res.cloudinary.com",
      },
    ],
  },
  redirects: async () => [
    {
      source: "/old-about",
      destination: "/about",
      permanent: true,
    },
  ],
  cacheComponents: true,
};

export default nextConfig;

Redirects ও Rewrites

Featureকাজ
redirectsএক URL আরেক URL-এ পাঠায়
rewritesURL change না করে ভিন্ন source
headersCustom HTTP headers

Image Remote Patterns

External domain থেকে image দেখাতে next/image-এ remotePatterns সেট করতে হয়।

TypeScript Support

next.config.ts (TypeScript) supported — config-এ type safety পাবেন। Template literal ব্যবহার করে placeholder দিলেও সম্পূর্ণ typing অব্যাহত থাকে।

শেষ প্যারায় নিজে practice করুন — কোড কপি করে নিজের এডিটরে চালিয়ে দেখুন।
আগেরDeploymentপরেরStatic ও Dynamic Rendering
এই পেজে
Tech Tutor

বাংলায় ওয়েব ডেভেলপমেন্ট ডকুমেন্টেশন শিখুন — ধাপে ধাপে।

Homeসব ডকুমেন্টেশনQuick Startআমার নোটস

© 2026 Tech Tutor. বাংলায় শিখুন, বাংলায় গড়ুন।

mdanamolhasan1998@gmail.com