Skip to content

Instantly share code, notes, and snippets.

View yamanidev's full-sized avatar

Mohamed Yamani yamanidev

View GitHub Profile
@yamanidev
yamanidev / nginx-configuration-nextjs.md
Created February 27, 2024 18:06
NGINX configuration for deploying Next.js applications (Pages Router)

NGINX

  1. Configuration for serving static content of a Next.js static export.
  2. Configuration of a reverse proxy for a Next.js server application (SSR/SSG/ISR).

You can follow the guide I wrote on deploying Next.js applications to a VPS using NGINX and PM2: article