Next Js

Next Js

framework for building fast, scalable, and SEO-friendly web applications

next js

مقالات

Optimizing Memory Usage in Next.js – Reducing Build Pressure and Improving Development Stability

As Next.js applications grow, memory usage during development and production builds can increase significantly. This article outlines strategies to reduce memory consumption, including dependency trimming, Webpack optimizations, disabling static analysis, managing source maps, and using heap profiling tools.

/persian/article-fa/nextjs-memory-optimization-webpack-heap-debug-typescript-cache

Migrating from Pages Router to App Router in Next.js – A Gentle, Step-by-Step Guide for Modern Web Development

Next.js 13 introduced the App Router — a modern, powerful alternative to the classic Pages Router. This article walks you through a smooth migration process, including version upgrades, layout setup, component updates, data fetching, API routes, styling, and codemods. You’ll learn how to transition gradually while keeping your app stable and future-ready.

/persian/article-fa/nextjs-app-router-migration-guide-pages-to-app-modern-react

Building Micro-Frontends with Multi-Zones in Next.js – Route Isolation, Independent Deployment, and Shared Code

Multi-Zones in Next.js allow you to split a large application into smaller, independently deployed apps. Each zone handles a specific set of routes and can be developed separately. This article explains how to define zones, configure assetPrefix, route requests, use proxy logic, share code, and support Server Actions across zones.

/persian/article-fa/nextjs-microfrontend-multizone-assetprefix-routing-proxy-serveractions

OpenTelemetry در nesx js

OpenTelemetry بینش عمیقی در مورد عملکرد و رفتار برنامه Next.js شما ارائه می‌دهد.

/persian/article-fa/nextjs-opentelemetry-instrumentation-span-trace-collector-otel

Optimizing Package Bundling in Next.js – Analyze, Reduce, and Control Dependencies

Efficient package bundling in Next.js improves performance and reduces load time. This article explains how to analyze bundles using @next/bundle-analyzer, optimize imports with experimental options, and control server-side dependencies using serverExternalPackages.

/persian/article-fa/nextjs-package-bundling-optimization-analyzer-imports-server-components

Optimizing Your Next.js Application for Production – Performance, Security, and User Experience

Before deploying your Next.js application to production, you should implement a set of optimizations and best practices. This article covers automatic Next.js optimizations, development patterns, security, SEO, and performance tools to help you deliver a fast, secure, and reliable experience for real users.

/persian/article-fa/nextjs-production-optimization-performance-security-seo-cache-components

Building a Progressive Web App (PWA) with Next.js – Installable, Offline-Ready, and Push-Enabled

With Next.js, you can build a Progressive Web App that behaves like a native mobile app — installable, fast, offline-capable, and able to send push notifications. This article walks you through each step: creating a manifest, setting up push notifications, registering a service worker, securing your app, and testing locally.

/persian/article-fa/nextjs-pwa-installable-offline-push-notifications-service-worker

Handling Redirects in Next.js – From Simple Navigation to Scalable Proxy Solutions

Redirects in Next.js can be handled at multiple levels — client, server, config, and proxy. This article explores each method, their use cases, and how to scale redirect management for thousands of routes using techniques like redirect maps and Bloom filters.

/persian/article-fa/nextjs-redirects-server-client-config-proxy-bloom-filter

Using Sass and Managing Scripts in Next.js – Modern Styling and Optimized Loading

Next.js has built-in support for Sass and allows you to use SCSS or SASS with CSS Modules. It also provides the Script component to load third-party scripts efficiently, with support for loading strategies and experimental Web Worker offloading via Partytown.

/persian/article-fa/nextjs-sass-scss-script-loading-optimization-partytown

How to Self-Host Your Next.js Application – Configuration, Caching, and Deployment Strategies

Self-hosting a Next.js application gives you full control over caching, image optimization, environment variables, and deployment behavior. This article walks through how to configure your app for production, manage ISR and build cache, handle streaming, and optimize performance across containers and CDNs.

/persian/article-fa/nextjs-self-hosting-deployment-cache-isr-proxy-env

Building Single-Page Applications (SPAs) with Next.js – Client Rendering, Fast Navigation, and Dynamic Data Fetching

Next.js fully supports building SPAs with client-side rendering, fast transitions, and dynamic data fetching. This article explores common patterns for building SPAs using context, SWR, React Query, Server Actions, and shallow routing — while allowing you to progressively adopt server features as your app grows.

/persian/article-fa/nextjs-single-page-application-spa-client-rendering-swr-react-query

Creating a Static Export of Your Next.js Application – HTML Output, Serverless Hosting, and Image Optimization

Next.js allows you to generate a static export of your application, turning each route into an independent HTML file. This article explains how to configure static output, use Server and Client Components, optimize images with Cloudinary, and host your app on static servers like Nginx.

/persian/article-fa/nextjs-static-export-html-spa-cloudinary-nginx
Next Js | دکتر شاهین صیامی